forked from sheetjs/sheetjs
Fix basedate calculation
Co-authored-by: Philippe Rivière <fil@rezo.net>
This commit is contained in:
parent
c14e1712ea
commit
1dfabe74b1
4
xlsx.js
generated
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();
|
||||
|
Loading…
Reference in New Issue
Block a user