Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits: 5bf4f2ae by Cédric Krier at 2023-05-10T10:07:34+02:00 Remove timezone info after converting datetime in UTC The datetime are always in UTC without tzinfo so they can be compared with the data from the database. Closes #12262 - - - - - 1 changed file: - modules/stock/product.py Changes: ===================================== modules/stock/product.py ===================================== @@ -235,7 +235,8 @@ context['_datetime'] = ( context['_datetime'] .replace(tzinfo=timezone) - .astimezone(tz.UTC)) + .astimezone(tz.UTC) + .replace(tzinfo=None)) except OverflowError: pass # The date could be before the product creation View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/5bf4f2ae61f15f06db43697b61162b62ab672a36 -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/5bf4f2ae61f15f06db43697b61162b62ab672a36 You're receiving this email because of your account on foss.heptapod.net.