Skip to content

Commit

Permalink
Merge branch 'develop' into 'main'
Browse files Browse the repository at this point in the history
chore: Update

See merge request locker/api-core!469
  • Loading branch information
khaitranquang committed Jul 8, 2024
2 parents e31e973 + 9fc310b commit 61ea99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locker_server/api/v1_0/ciphers/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61ea99b

Please sign in to comment.