diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-01-26 16:29:11 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-01-26 16:29:11 +0100 |
| commit | 32eaff93d3647e2dad70fa387f7d788db1fcc296 (patch) | |
| tree | 6a10d62a64247b72f513a94bcd7a909fe0f98402 /addons/web/static/src | |
| parent | 7760df3d443a06bd304b7c2b3bebb03fab691948 (diff) | |
[imp] added doc
bzr revid: nicolas.vanhoren@openerp.com-20120126152911-s5idtdwgp454v8i5
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/dates.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/dates.js b/addons/web/static/src/js/dates.js index fe57f1b614c..d61223113f8 100644 --- a/addons/web/static/src/js/dates.js +++ b/addons/web/static/src/js/dates.js @@ -136,6 +136,10 @@ openerp.web.date_to_str = function(obj) { * Converts a Date javascript object to a string using OpenERP's * time string format (exemple: '15:12:35'). * + * The OpenERP times are supposed to always be naive times. We assume it is + * represented using a javascript Date with a date 1 of January 1970 and a + * time corresponding to the meant time in the browser's time zone. + * * @param {Date} obj * @returns {String} A string representing a time. */ |
