-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same date is written differently in Chrome/Safari and other browsers #1152
Comments
I cannot reproduce on OSX 10.13.4 (High Sierra) using Chrome 67 ( What operating system are you using and what timezone is your computer currently set to? Also, what does |
Thanks for checking, We reproduce that both on Mac (MacOS High Sierra 10.13.5 (17F77)) and Windows (10, Server 2016). Seems like the issue depends on local computer timezone, I opened Date&Time settings and changed local computer time zone. I guess the issue is with some rounding of digits when calculating OA date format, |
The reason is Daylight Saving Time (DST) changes in diferent years. |
Sub-minute difference in chrome is almost certainly due to a V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=7863 (in many timezones, the date epoch had a timezone offset with a seconds component. V8 does not handle it correctly) Closing in favor of #1212 |
Hello,
Running your sample: http://sheetjs.com/demos/writexlsx.html
There is a date cell that holds "2014-02-19T14:30Z" value
When running script in Chrome (v67), Safari, resulting XSLX file has the following value:
41689.729212962964 that converts to 2014-02-19T14:30:04Z
in other browsers (Edge, Firefox) that results in proper value:
41689.729166666664 that converts to 2014-02-19T14:30:00Z
Please notice difference in seconds.
The text was updated successfully, but these errors were encountered: