Hi dears odoo community,
please, is there a way to change the timezone infos to a specific datetime field on odoo, not to apply to all the context of current user, but to a specific one.
Because whene i try to change it via .replace(tzinfo) i got this error:
ValueError: Datetime field expects a naive datetime: 2020-12-18 14:36:06+00:00
and if i try to assign it using tostring method , i dont see any changes , value on database still on db and there is a difference between two value on the client and on the db,
rec.my_dt = fields.Datetime.to_string(rec.my_dt.astimezone(timezone('UTC')))
i want them two on utc.
thanks in advance.
Have you found any solution?