JS Date() takes months 0-11, for reasons that are far from clear
This commit is contained in:
parent
2399f044e1
commit
8ed37732c1
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ Scholar.Date = new function(){
|
||||||
else {
|
else {
|
||||||
timeparts = [false, false, false];
|
timeparts = [false, false, false];
|
||||||
}
|
}
|
||||||
return new Date(dateparts[0], dateparts[1], dateparts[2],
|
return new Date(dateparts[0], dateparts[1]-1, dateparts[2],
|
||||||
timeparts[0], timeparts[1], timeparts[2]);
|
timeparts[0], timeparts[1], timeparts[2]);
|
||||||
}
|
}
|
||||||
catch (e){
|
catch (e){
|
||||||
|
|
Loading…
Reference in a new issue