From 32eaff93d3647e2dad70fa387f7d788db1fcc296 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 26 Jan 2012 16:29:11 +0100 Subject: [PATCH] [imp] added doc bzr revid: nicolas.vanhoren@openerp.com-20120126152911-s5idtdwgp454v8i5 --- addons/web/static/src/js/dates.js | 4 ++++ 1 file changed, 4 insertions(+) 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. */