Remove use of deprecated Date.toLocaleFormat

This commit is contained in:
Adomas Venčkauskas 2017-01-06 09:58:22 +02:00
parent 231a276b06
commit 2682d01016

View file

@ -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);