You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <ji...@apache.org> on 2005/09/15 19:19:54 UTC

[jira] Closed: (VELOCITY-213) add DateTool support for Locale-sensitive formatting

     [ http://issues.apache.org/jira/browse/VELOCITY-213?page=all ]
     
Nathan Bubna closed VELOCITY-213:
---------------------------------

    Assign To:     (was: Velocity-Dev List)

this was resolved in 1.1.

> add DateTool support for Locale-sensitive formatting
> ----------------------------------------------------
>
>          Key: VELOCITY-213
>          URL: http://issues.apache.org/jira/browse/VELOCITY-213
>      Project: Velocity
>         Type: Improvement
>   Components: Tools
>     Versions: 1.0-Release
>  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: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org