Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Do workflows hinder TZ calculations?

by
manuel
- 07/10/2015 18:51:20
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,
Manuel.