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

        issue9698
        review329211002
        (grafted from b99e3e41769624d08590d754e9a619c1c6fb7d72)
diffstat:

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

diffs (12 lines):

diff -r 6567de0b088b -r 6d7ffe78ff9d tryton/pyson.py
--- a/tryton/pyson.py   Wed Oct 28 23:59:06 2020 +0100
+++ b/tryton/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