mirror of
https://github.com/zotero/zotero.git
synced 2026-09-22 00:32:47 +00:00
Fix parsing of January dates in Zotero.Date.strToISO()
https://forums.zotero.org/discussion/36550/#Item_6
This commit is contained in:
parent
6a58d3b2ff
commit
42c02526ef
1 changed files with 1 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ Zotero.Date = new function(){
|
|||
|
||||
if(date.year) {
|
||||
var dateString = Zotero.Utilities.lpad(date.year, "0", 4);
|
||||
if(date.month) {
|
||||
if (parseInt(date.month) == date.month) {
|
||||
dateString += "-"+Zotero.Utilities.lpad(date.month+1, "0", 2);
|
||||
if(date.day) {
|
||||
dateString += "-"+Zotero.Utilities.lpad(date.day, "0", 2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue