DateTime detection /formatting problem #59
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#59
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm trying to convert this file: https://www.dropbox.com/s/qbjhjhfjx02dyfa/ATtest.xlsx
to csv and my output is: https://www.dropbox.com/s/tf5e2j6mag74c1y/ATtest.csv
and was expectig: https://www.dropbox.com/s/qt24pq1qiie2bto/file.csv
Library version
Open Office also truncates the output showing 49:49.0 instead of 12/01/2013 03:49:49 but will show the right value in the input line
For whatever reason I can't download the original file. Is the link correct?
Also, Can you show the output from
That should display the number formats.
@vratiu The dropbox issue only occurs on phone (strangely enough). It downloaded on my computer.
Did you look at the output from Excel itself? This is what I see:
Excel 2013:
Excel 2011:
Using the
j
command line tool:Both Excel 2011 and Excel 2013 agree on the format:
As a result, I'm inclined to say this is not a bug.
@SheetJSDev I've looked with Open Office and yes it shows up truncated exactly like your screenshots.
But, if you look closer in the input line near the "fx" you can notice the full date-time value.
Converting these files to csv will output the correct timestamp.
Also, I've tried other converters in two different languages, just to see how they behave, and they output the date-time correctly.
@vratiu the content in the top bar will show the same format (mm/dd/yyyy HH:MM:SS) regardless of the number format in the cell (so long as excel thinks it is a date)
If you want to see that, download http://oss.sheetjs.com/test_files/number_format.xlsm and look at cells B12:B20 -- all of them show the same content
10/18/1933 16:17:37
in the top bar but show different texts in the cell.If you want to recover the original date as a JS date, there is a roundabout way (I'll make a few changes soon to simplify this):
@SheetJSDev
Where in the code could I check the format and do the conversion to have this case enabled ?
Maybe here ?
@vratiu ssf is a separate module (http://npm.im/ssf), but you can get at it with
j.XLS.SSF
If you want to reproduce the text that excel uses, try format
mm/dd/yyyy HH:MM:SS
: