You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ralf Hauser (JIRA)" <ji...@apache.org> on 2006/05/22 07:48:16 UTC
[jira] Commented: (STR-2388) [taglib] enhance bean:write with
optional "timezone" attribute if property data is a Date type
[ http://issues.apache.org/struts/browse/STR-2388?page=comments#action_37385 ]
Ralf Hauser commented on STR-2388:
----------------------------------
see also SB-20 for enum support
> [taglib] enhance bean:write with optional "timezone" attribute if property data is a Date type
> ----------------------------------------------------------------------------------------------
>
> Key: STR-2388
> URL: http://issues.apache.org/struts/browse/STR-2388
> Project: Struts Action 1
> Type: Improvement
> Components: Taglibs
> Versions: 1.2.6 Beta
> Environment: Operating System: All
> Platform: PC
> Reporter: Ralf Hauser
> Assignee: Struts Developer Mailing List
> Priority: Minor
> Attachments: WriteTag.java.patch
>
> As per http://www.mail-archive.com/struts-user@jakarta.apache.org/msg54524.html,
> with TimeZone.getDefault() the Date.toString() method takes the server default.
> Since java.util.TimeZone.setDefaultZone() takes jvm global property
> "user.timezone" or in absence of this "user.country" and "java.home", this
> cannot be used to vary the timeZone on a per session basis.
> An alternative implementation approach might be to
> 1) add a String org.apache.struts.Globals.TIMEZONE_KEY =
> "org.apache.struts.action.TIMEZONE" like we do for Locale
> 2) extend the bean:write as per the patch attached next
> 3) extension of TagUtils in analogy to
> org.apache.struts.taglib.TagUtils.getUserLocale() or rather directly
> org.apache.struts.util.RequestUtils.getUserLocale()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira