Fix basedate calculation

Co-authored-by: Philippe Rivière <fil@rezo.net>
This commit is contained in:
Ivan Trusov 2022-05-31 17:26:54 +03:00 committed by GitHub
parent c14e1712ea
commit 1dfabe74b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
xlsx.js generated

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