Community: Framework mailing list archives

Re: Do workflows hinder TZ calculations?

Lambda Networks AS, Levent Karakaş
- 07/11/2015 05:04:55
Since you don't have user context in workflows, you don't have timezone and language setting. Not only tz but also translation is not possible as well. 

2015-07-11 1:56 GMT+03:00 Manuel Vázquez <>:
Well, I generalize my question to where does Odoo does the TZ -->UTC and
UTC --> TZ datetime conversions.

I experimented by doing a::

    search(cr, uid, [('datetime_col', '>=', '2015-07-01 00:00:00')],
context={'tz': 'Europe/Paris'})

And trace the query... It leaves the datetime representation
untouched... no matter of 'tz' param.

I also did a .create()... and the datetime vals where passed as-is.

So, it seems that TZ --> UTC convertion is been dealt with outside the
ORM.  Where?  At the UI?

Best regards,

Post to: