changeset 8c50765f8982 in proteus:5.0
details: https://hg.tryton.org/proteus?cmd=changeset;node=8c50765f8982
description:
        PYSON's DateTime defaults to the current time in UTC

        issue9698
        review329211002
        (grafted from 660d71752eafb9d6449fab76ebd8515d14764553)
diffstat:

 proteus/pyson.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c3d01cd441f6 -r 8c50765f8982 proteus/pyson.py
--- a/proteus/pyson.py  Mon Dec 02 20:47:15 2019 +0100
+++ b/proteus/pyson.py  Thu Oct 22 12:11:09 2020 +0200
@@ -610,7 +610,7 @@
 
     @staticmethod
     def eval(dct, context):
-        return datetime.datetime.now() + relativedelta(
+        return datetime.datetime.utcnow() + relativedelta(
             year=dct['y'],
             month=dct['M'],
             day=dct['d'],

Reply via email to