Fix Getting Max Japanese Era (#21087)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Mon, 19 Nov 2018 20:50:33 +0000 (12:50 -0800)
committerGitHub <noreply@github.com>
Mon, 19 Nov 2018 20:50:33 +0000 (12:50 -0800)
commit8fd089e6600befc4cf25ae9f95529429e4763773
treecf49a401038a4ec84234852643335491138143a1
parent23b0e8e44ca47f114622817f7de4471eba56b962
Fix Getting Max Japanese Era (#21087)

We were using the ICU API ucal_getLimit and askin gto get the maximum value of the Japanese eras. it looks this API is just return the era matching the current system clock which prevent returning any future defined era in the system (which ICU 63.1 can support with some environment variable).
We raised the issue to the ICU owners but would be better just to get the era of Gregorian year 9999 which always should return the max era anyway.
src/corefx/System.Globalization.Native/calendarData.cpp