Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.0-core
-
None
Description
The th_TH calendar uses dates that are offset by 543 years from Gregorian calendar (which Javascript uses). The client DateTimeConverter handles this by adding/subtracting from the Gregorian value during formatting/parsing user strings.
However, when the user enters a 2 digit year string and the parsing code calls _fix2DYear to adjust it to the correct century, it does not account for the offset. The value, specified in trinidad-config.xml as two-digit-year-start, is defaulted to 1950 and the documentation states that it is treated as a Gregorian year. The code should adjust the two-digit to Thai calendar while calculating, otherwise the parsed value would be off.