Remove use of deprecated Date.toLocaleFormat
This commit is contained in:
parent
231a276b06
commit
2682d01016
|
@ -137,7 +137,12 @@ Zotero.Date = new function(){
|
||||||
var seconds = date.getUTCSeconds();
|
var seconds = date.getUTCSeconds();
|
||||||
}
|
}
|
||||||
else {
|
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);
|
year = Zotero.Utilities.lpad(year, '0', 4);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user