Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.0-core
-
None
Description
1. Create and run the following jspx
<tr:inputText is d="dt" autoSubmit="true" value="#
<tr:convertDateTime locale="th_TH"/>
</tr:inputText>
<tr:outputText value="#{input.date}
" partialTriggers="dt">
<tr:convertDateTime locale="en_US"/>
</tr:outputText>
2. The page will display the date using the Thai Buddhist Calendar, then the date in US format (which uses GregorianCalendar on the server side). The Thai Buddhist calendar is offset by 543 years from the Gregorain, e.g. the inputText shows 22/8/2554 and the outputText shows 8/22/2011 .
3. Update the inputText to 29/2/2555 which is equivalent to 2/29/2012 Gregorian, a valid date. However this gives an error, "Enter a valid date or time".