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

        issue9698
        review329211002
        (grafted from 662ae82c0f5e83f6e4147cb6ef59917e5e182d45)
diffstat:

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

diffs (12 lines):

diff -r bb821b08ba73 -r ab9a027a4a87 trytond/pyson.py
--- a/trytond/pyson.py  Wed Oct 21 23:23:17 2020 +0200
+++ b/trytond/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