Fix basedate calculation #2683

Open
ivan-trusov wants to merge 6 commits from ivan-trusov/fix-basedate into master
Showing only changes of commit 1dfabe74b1 - Show all commits

4
xlsx.js generated
View File

@ -3214,9 +3214,7 @@ function evert_arr(obj) {
return o;
}
var basedate = new Date(); // 2209161600000
basedate.setUTCFullYear(1899, 11, 30);
basedate.setUTCHours(0, 0, 0);
var basedate = new Date(Date.UTC(1899, 11, 30, 0, 0, 0)); // 2209161600000
function datenum(v, date1904) {
var epoch = v.getTime();