From 9fc310b2c00d7ddc76a5e746b43fca84bf88514a Mon Sep 17 00:00:00 2001 From: Khai Tran Date: Mon, 8 Jul 2024 11:37:38 +0700 Subject: [PATCH] chore: Update --- locker_server/api/v1_0/ciphers/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locker_server/api/v1_0/ciphers/serializers.py b/locker_server/api/v1_0/ciphers/serializers.py index 884e41c..af0a740 100644 --- a/locker_server/api/v1_0/ciphers/serializers.py +++ b/locker_server/api/v1_0/ciphers/serializers.py @@ -155,7 +155,7 @@ def validate(self, data): if last_used_date: try: last_used_date_ts = datetime.strptime(last_used_date, "%Y-%m-%dT%H:%M:%S.%fZ").timestamp() - data["last_used_date"] = last_used_date_ts + # data["last_used_date"] = last_used_date_ts except TypeError: raise serializers.ValidationError(detail={"lastUsedDate": ["The last used date is not valid datetime"]}) return data