You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a quick glance at the code, and although the information is fetched from the OS (#27800) and therefore barely any changes should be required, there seem to be a couple of hard-coded data in the codes.
(The problem is, quite a lot of callsites are expecting the first item in the array to be the current era, which wouldn't be the case until 1st of May)
...ah, current time, the most insidious of implicit dependencies.
A few hours ago, the name of Japan's new era has been announced as 'Reiwa' (令和,
\u4ee4\u548c
).I had a quick glance at the code, and although the information is fetched from the OS (#27800) and therefore barely any changes should be required, there seem to be a couple of hard-coded data in the codes.
List of changes required:
Need to add the new era to the fallback case, though it seems very unlikely to happen.
(The problem is, quite a lot of callsites are expecting the first item in the array to be the current era, which wouldn't be the case until 1st of May)
The text was updated successfully, but these errors were encountered: