[
https://issues.apache.org/struts/browse/STR-2388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict closed STR-2388.
------------------------------
Resolution: Won't Fix
Assignee: (was: Struts Developers)
Please use JSTL.
> [taglib] enhance bean:write with optional "timezone" attribute if property
> data is a Date type
> ----------------------------------------------------------------------------------------------
>
> Key: STR-2388
> URL: https://issues.apache.org/struts/browse/STR-2388
> Project: Struts 1
> Issue Type: Improvement
> Components: Taglibs
> Affects Versions: 1.2.6 Beta
> Environment: Operating System: All
> Platform: PC
> Reporter: Ralf Hauser
> Priority: Minor
> Attachments: WriteTag.java.patch
>
>
> As per http://www.mail-archive.com/[EMAIL PROTECTED]/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.
-
You can reply to this email to add a comment to the issue online.