[jbpm-issues] [JBoss JIRA] Commented: (JBPM-1446) display non GMT+0 time zones

Alejandro Guizar (JIRA) jira-events at lists.jboss.org
Thu Aug 7 14:38:49 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBPM-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12424127#action_12424127 ] 

Alejandro Guizar commented on JBPM-1446:
----------------------------------------

Quoting the Oracle page:

"Timezone can be set per web-app in adf-faces-config.xml configuration file. If timeZone is not set on the converter, then timezone will be defaulted to the value set in adf-faces-config.xml configuration file. If it is not set in the configuration file, then it will be defaulted to GMT."

The client time zone is not mentioned anywhere. In turn, the IBM page does not mention what the time zone defaults to. Since it reads "the <hx:convertDateTime> tag extends the <f:convertDateTime> tag" I assume it simply defaults to GMT just like the standard faces tag.

In both cases, the locale attribute specifies the "locale whose predefined styles for dates and times are used during formatting or parsing". If not specified, FacesContext.getViewRoot().getLocale() is used instead. No relation between the locale and the time zone is ever established.

As for Seam, the documentation (as well as the code, which I understand now) reads:

"There is also a session-scoped instance of  java.util.Timezone, named org.jboss.seam.international.timezone, and a Seam component for changing the timezone named  org.jboss.seam.international.timezoneSelector. By default, the timezone is the default timezone of the server. Seam provides the <s:convertDateTime> tag which always performs conversions in the Seam timezone."

(from http://docs.jboss.com/seam/2.0.2.SP1/reference/en-US/html/i18n.html#d0e9255)

In sum it seems the best default you can get is the server time zone. You can provide a way to set a default time zone per web app in a configuration file. You can associate the time zone to the session and allow the client to change it at a single point. But there is no hope of getting your hands on the client time zone.

> display non GMT+0 time zones
> ----------------------------
>
>                 Key: JBPM-1446
>                 URL: https://jira.jboss.org/jira/browse/JBPM-1446
>             Project: JBoss jBPM
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Core Engine
>            Reporter: Jiri Pechanec
>            Assignee: Alejandro Guizar
>             Fix For:  SOA 4.2 CP03, SOA 4.3
>
>         Attachments: Screenshot.jpg, SolutionShot.png
>
>
> I spotted it today so I am creating the link to project JIRA. It is really inconvenient for user to have UTC time displayed in browser. See JBPM-987

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbpm-issues mailing list