Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.5
-
None
-
None
-
tomcat 5,5 + linux with english locale --> Server
windows mozilla firefox , spanish locale --> navigator client
Description
Hi, i'm using t:schedule from tomahawk and i've a problem:
property headerDateFormat takes the Locale from the Server (for example, English) and, if i want to use the context viewroot to format the date it's imposible.
For example: if my navigator's language is in spanish, t:schedule shows me the headerDateFormat in english beacause is the Locale from the Server where is my application.
I saw code from tomahawk t:schedule --> AbstractScheduleRenderer when i use the headerDateFormat property :
if ((pattern != null) && (pattern.length() > 0))
{
format = new SimpleDateFormat(pattern); --> it would be ok if --> new SimpleDateFormat(pattern, context.getViewRoot.getLocale());
}
Is there any possiblity without modifying AbstractScheduleRenderer code to localize the headerDateFormat property ?
Thanks
Attachments
Issue Links
- duplicates
-
TOMAHAWK-986 The SharedRenderer fails to get the Default Locale when a headerDateFormat is specified
- Closed