Lower case a/p instead giving UPPER CASE #2570
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#2570
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?
To create lower case am/pm, the format a/p"m" is used. This works in Excel, but here the A or P is incorrectly formatted in UPPER CASE, giving results like Am, Pm.
To replicate, use format
h:mm a/p"m"
on pi, and get result3:23 Am
.Solution is to check the case of the A/P format in eval_fmt, and give a/p if the user specified "a/p" rather than "A/P".
Thanks for the heads up! Testing in Excel 2019:
am/pm
the casing is completely ignored and the result is always uppercase (so AM or PM no matter what you specify)a/p
the character is the one in the string. For the formata/P
with lowercasea
and uppercaseP
, Excel 2019 either writes "a" or "P".We'll have to check some older versions to make sure this is the same behavior