summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core/context.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2017-02-23 14:08:33 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit3c0190d0a6c0d5ccc130fd9b685681fa9bac1de3 (patch)
tree9dda80c321a23ce122b092fb8b62a4f3e44bd271 /addons/web/static/src/js/core/context.js
parentcce579434b172eeb63049a471334e18df15fa401 (diff)
[IMP] web: use moment object instead of string for date
Before this commit, the odoo web client used strings to represent dates. Now, the date is parsed into a moment object when the value is read from the server side. The widget formats the object to display the value. When the widget value changes, the value is parsed to a moment object. The value is automatically formatted to server value in ajax calls (toJSON method).
Diffstat (limited to 'addons/web/static/src/js/core/context.js')
0 files changed, 0 insertions, 0 deletions