www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 2682d010167ce9c37afd80da43b35da2d1269f99
parent 231a276b0626b3e8c373c4b8d652c63f684205b4
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Fri,  6 Jan 2017 09:58:22 +0200

Remove use of deprecated Date.toLocaleFormat

Diffstat:
Mchrome/content/zotero/xpcom/date.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js @@ -137,7 +137,12 @@ Zotero.Date = new function(){ var seconds = date.getUTCSeconds(); } else { - return date.toLocaleFormat('%Y-%m-%d %H:%M:%S'); + var year = date.getFullYear(); + var month = date.getMonth(); + var day = date.getDate(); + var hours = date.getHours(); + var minutes = date.getMinutes(); + var seconds = date.getSeconds(); } year = Zotero.Utilities.lpad(year, '0', 4);