Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits: df6da32b by Cédric Krier at 2023-04-11T00:12:33+02:00 Set cron timezone with default value Closes #12056 - - - - - 1 changed file: - trytond/trytond/ir/cron.py Changes: ===================================== trytond/trytond/ir/cron.py ===================================== @@ -102,4 +102,8 @@ # Migration from 5.0: remove required on next_call table_h.not_null_action('next_call', 'remove') + @classmethod + def default_timezone(cls): + return tz.SERVER.tzname(datetime.datetime.now()) + def get_timezone(self, name): @@ -105,5 +109,5 @@ def get_timezone(self, name): - return tz.SERVER.tzname(datetime.datetime.now()) + return self.default_timezone() @classmethod def check_xml_record(cls, crons, values): View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/df6da32bd67c4e80d6c1f27fdfe1540129cf122b -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/df6da32bd67c4e80d6c1f27fdfe1540129cf122b You're receiving this email because of your account on foss.heptapod.net.