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

sheet_to_json: date value is printed the day before #1435

Closed
timratha opened this issue Feb 22, 2019 · 5 comments
Closed

sheet_to_json: date value is printed the day before #1435

timratha opened this issue Feb 22, 2019 · 5 comments

Comments

@timratha
Copy link

timratha commented Feb 22, 2019

Hi Team,

Recently I am working about reading data which in excel sheet has the value of Date also Value(decimal value).

I am using xlsx -v 0.14.1. My purpose is to get the raw data from the excel file (exact date and value which are filled excel )

Sample Data:
Date | Value
12/31/2016 | -1234567890.12345
12/31/2017 | 1234567890.12345

After I uploaded the excel file, I got:
2016-12-30 -1,234,567,890.12345
2017-12-30 1,234,567,890.12345

I find out that the date value is printed the day before. I have checked the value before converting to Json, the date value is Fri Dec 30 2016 23:59:56 GMT+0700 (Indochina Time) then once it is converted to Json the value is 2016-12-30

Is there any solution referring to this case?

@mareek
Copy link

mareek commented Feb 26, 2019

This bug might be linked to #1212.
Can you try the fix suggested by @cdmahoney to see if your problem has the same root cause ?

I've created a pull request ( SheetJS/ssf#38 ) to fix the problem

@SheetJSDev
Copy link
Contributor

This should have been fixed in v0.16.0, please update and report back if there are issues.

@tanishkab
Copy link

It is not fixed yet, using 0.16.9 version

@QuangVinhTran
Copy link

it still have the issue at version : 0.18.7

@Husain010
Copy link

Is this still not fixed? I am facing the same error.

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

6 participants