[
https://issues.apache.org/jira/browse/LANG-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved LANG-828.
-----------------------
Resolution: Fixed
URL: http://svn.apache.org/viewvc?rev=1390626&view=rev
Log:
LANG-828 FastDateParser does not handle non-Gregorian calendars properly
Use Calendar#getDisplayNames() instead of DateFormatSymbols#getEras()
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
> FastDateParser does not handle non-Gregorian calendars properly
> ---------------------------------------------------------------
>
> Key: LANG-828
> URL: https://issues.apache.org/jira/browse/LANG-828
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.time.*
> Affects Versions: 3.1
> Reporter: Sebb
> Fix For: 3.2
>
>
> The following calendars are non-Gregorian [1]:
> ja_JP_JP - Japanese Imperial)
> th_TH (with any variant) - Thai Buddhist
> This causes errors when testing round-trip conversions.
> The simplest solution is to fall back to SimpleDateFormat for these calendars.
> [1]
> http://docs.oracle.com/javase/6/docs/technotes/guides/intl/calendar.doc.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira