-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Subtracting 1-year from date during Reiwa 1 yields unexpected results. #471
Copy link
Copy link
Closed
Description
Describe the bug
When using Japanese era globalization settings, adding/subtracting years can yield unexpected results.
Steps To Reproduce
- Set your globalization settings to Japanese and use the Era notation for Calendar format
- Open calculator and go to date calculation
- Switch to add/subtract mode
- Set the date to Reiwa 1-nen May 1
- Subtract 1 year from that date
- Note the result is Heisei 31-nen Apr 1
Expected behavior
the result should be Heisei 30, May 1
Screenshots
Device and Application Information
- OS Build: 17763
- Architecture: x64
- Application Version:
- Region:
- Dev Version Installed:
Additional context
The Japanese Era system can have multiple year partitions within the same year.
For example, April 30, 2019 is denoted April 30, Heisei 31; May 1, 2019 is denoted as May 1, Reiwa 1. The Calendar treats Heisei 31 and Reiwa 1 as separate years, which results in some unexpected behaviors where subtracting a year from Reiwa 1 results in a date in Heisei 31.
Reactions are currently unavailable