changeset 660d71752eaf in proteus:default
details: https://hg.tryton.org/proteus?cmd=changeset;node=660d71752eaf
description:
PYSON's DateTime defaults to the current time in UTC
issue9698
review329211002
diffstat:
proteus/pyson.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c3a4ffc3843a -r 660d71752eaf proteus/pyson.py
--- a/proteus/pyson.py Fri Oct 16 19:19:59 2020 +0200
+++ b/proteus/pyson.py Thu Oct 22 12:11:09 2020 +0200
@@ -644,7 +644,7 @@
and not isinstance(now, datetime.datetime)):
now = datetime.datetime.combine(now, datetime.time())
if not isinstance(now, datetime.datetime):
- now = datetime.datetime.now()
+ now = datetime.datetime.utcnow()
return now + relativedelta(
year=dct['y'],
month=dct['M'],