"new Date()" function work in chrome not expected #709
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#709
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?
if (v != null && v.length) {
if (!isNaN(Number(v)))
o = {
t: "n",
v: Number(v)
};
else if (!isNaN(fuzzydate(v).getDate())) {
o = {
t: "d",
v: parseDate(v)
};
if (!opts.cellDates)
o = {
t: "n",
v: datenum(o.v)
};
o.z = opts.dateNF || SSF._table[14]
}
}
example:
Number('4,001')
chrome input: Sun Apr 01 2001 00:00:00 GMT+0800 (CST)
firefox input:Invalid Date
@mz121star we started digging into how to properly detect numbers versus potential dates. To first order, we strip the
$
currency symbol now and remove commas between numbers, which does work for the case4,001
.