summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/xml
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2014-01-28 14:37:06 +0100
committerMartin Trigaux <mat@openerp.com>2014-01-28 14:37:06 +0100
commit802d64ca92a31661154e1179b89db78e99ad3645 (patch)
tree15de309d6c916aed5edd97b4dc74e1753bed5bb8 /addons/web_graph/static/src/xml
parent3ce5e01eca85cdefe284ee3eb9314291833a7fb5 (diff)
parent5b7ade9db180b8a038c2a9944aba85d1ffd220ea (diff)
[MERGE] [ADD] ways to correctly handle local datetimes in e.g. domains
* Alter datetime.now(), generate a local datetime (add utcnow() which generates a UTC datetime) * Implement datetime.replace() to manipulate local datetimes * Implement date.today(), generates a local date * Implement datetime.toJSON(), returns a javascript Date (assumes datetime attributes are local) * Add conversion hook in JSON and JSONP handlers, automatically converts a Date object to a UTC datetime formatted according to server formats Should allow the generation of correctly working (from the end-user's POV) [Today] filters, amongst other things. Eg: a local expression in a domain for 'Today 00:00:00' would now be expressed as 'datetime.datetime.now().replace(hour=0, minute=0, second=0)' (no .strftime) and will be converted to UTC when sent to the server bzr revid: mat@openerp.com-20140128133706-4yp610pp5w06tcia
Diffstat (limited to 'addons/web_graph/static/src/xml')
0 files changed, 0 insertions, 0 deletions