From 2682d010167ce9c37afd80da43b35da2d1269f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 6 Jan 2017 09:58:22 +0200 Subject: [PATCH] Remove use of deprecated Date.toLocaleFormat --- chrome/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 index a70c5dabe7..9310e1c884 100644 --- 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);