[ http://issues.apache.org/jira/browse/VELTOOLS-44?page=all ]

Tim Colson moved VELOCITY-213 to VELTOOLS-44:
---------------------------------------------

      Project: VelocityTools  (was: Velocity)
          Key: VELTOOLS-44  (was: VELOCITY-213)
    Component:     (was: Tools)
      Version:     (was: 1.0-Release)

> add DateTool support for Locale-sensitive formatting
> ----------------------------------------------------
>
>          Key: VELTOOLS-44
>          URL: http://issues.apache.org/jira/browse/VELTOOLS-44
>      Project: VelocityTools
>         Type: Improvement
>  Environment: Operating System: All
> Platform: All
>     Reporter: Paul Barry
>     Priority: Minor
>  Attachments: LocaleDateFormatting.patch
>
> No way (that I could find) to print dates and times in a Locale sensitive way.
> In other words, US users see 12/31/03 and others see 31/12/03, and for month
> names the correct language should be displayed. Similarly 12 or 24 hour time
> formats differ around the world.
> I've got a patch that adds some simple DateFormat stuff to the DateTool to get
> an appropriate instance, and print using Locale and TimeZone. Very loosly
> modelled on the Cocoon formatter, passing in "short", "medium", "long" or 
> "full".
> Example usage from my app, where I've got a user bean in scope that stores an
> appropriate Locale and TimeZone for each user.
> $date.formatDate('medium',$lastReadTime,$user.locale,$user.timeZone)

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to