76881fb226
This fix adds the toJSON() method to datetime.datetime, so domain expressions can use datetime values directly, without having to compute the stringified version with convoluted strftime() and timezone calculations. The datetime results are sent down to the JSON-RPC level where the JSON.stringify() serialization will convert them to UTC string, to be deserialized properly as UTC datetime values on the server side. Thanks to this we can use the browser's local midnight timestamp in a filter expression, for example like this: `datetime.datetime.combine(context_today(), datetime.time(0,0,0))` and get the expected result regardless of the user/browser's timezone. related to issue #2972 and pull request #2914 and #6229 (Next commit will fix them) opw-621282 |
||
---|---|---|
.. | ||
cli | ||
controllers | ||
doc | ||
i18n | ||
static | ||
tests | ||
__init__.py | ||
__openerp__.py | ||
http.py | ||
session.py |