Skip to content

Commit 751c00d

Browse files
Fixes #1368: Use UTC timestamp in TimestampNow
1 parent 97715b8 commit 751c00d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

piccolo/columns/defaults/timestamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def sqlite(self):
6161
return "current_timestamp"
6262

6363
def python(self):
64-
return datetime.datetime.now()
64+
return datetime.datetime.now(tz=datetime.timezone.utc).replace(tzinfo=None)
6565

6666

6767
class TimestampCustom(Default):

0 commit comments

Comments
 (0)