Skip to content
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

Parsing date format issues #2372

Closed
fengguibin1 opened this issue Aug 31, 2021 · 3 comments
Closed

Parsing date format issues #2372

fengguibin1 opened this issue Aug 31, 2021 · 3 comments

Comments

@fengguibin1
Copy link

The data in excel is ‘’2021/08/23‘’ but parsed out ‘’Sun Aug 22 2021 23:59:17 GMT+0800 (中国标准时间)‘’
43 seconds difference in accuracy。The error occurred on Google, no problem on Firefox。version:xlsx@0.14.5 in China

@reviewher
Copy link
Contributor

Same issue as #1918 and #2350 . It is a V8 chrome + nodejs bug, see nodejs/node#33306 and https://bugs.chromium.org/p/v8/issues/detail?id=7863 for more details.

The anchor date is the midnight of December 31 1899 / January 1 1900. Asia/Hong_Kong and other asian timezones had a timezone offset that had a second component:

# Zone	NAME		STDOFF	RULES	FORMAT	[UNTIL]
Zone	Asia/Hong_Kong	7:36:42 -	LMT	1904 Oct 30  0:36:42

V8 does not properly represent these, hence the difference.

The only thing SheetJS can do is re-anchor to a date after the timezone was changed.

@fengguibin1
Copy link
Author

Thanks my friend. So is there any good solution to this issue, besides handling it manually.

@SheetJSDev
Copy link
Contributor

Moving discussion to #1565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants