fixed timezone

This commit is contained in:
2024-10-24 09:28:58 +02:00
parent b2a436d6f6
commit 938c2b0ca2
2 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -33,7 +33,9 @@ def create_timestamp(with_ms=True):
res = now.strftime('%Y-%m-%dT%H:%M:%S')
if with_ms:
res += ('.%03dZ' % (now.microsecond / 1000))
res += ('.%03d' % (now.microsecond / 1000))
res += 'Z'
return res