-
Notifications
You must be signed in to change notification settings - Fork 27
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
Date incorrectly formatted when calendar type is Japanese Emperor Reign #39
Comments
I was not familiar with the Gannen number format. I was able to make this work in Excel by using the following format string: [$-ja-JP]ggge"年"m"月"d"日";@ I couldn't make it work in Google Sheets though. |
From Microsoft's Open Specifications,
Japanese and Chinese Traditional (Taiwan) dates might be affected as well since their dates can contain era.
Excel showed the date correctly when I plugged that number format string, however I observed different results in both ExcelDataReader and ExcelNumberFormat.
|
Reference: I'm trying to come up with a potential fix based on this finding. |
Created a PR for this issue in my own fork, but if the repo owner is interested to take this fix then I can extend that PR into this repo too! |
From what I understand, this feature might not be properly supported, as shown in #36, but I'll post anyway to raise awareness.
This may be a potential issue for users who use Japanese era in their dates.
Reproduction Steps
Expected output
令和3年3月4日
R3.3.4
Actual output
44259
44259
The text was updated successfully, but these errors were encountered: