This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes How to format all dates and times into user's default local time zone? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to format all dates and times into user Watch "How to format all dates and times into user New topic
Author

How to format all dates and times into user's default local time zone?

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 481
    
    1

Hello!

I have good idea. I want to style all dates and times within my site into user's default local time zone. So that date and time is correct for user's local time zone.

I know I can use <f:convertDateTime>. But is there any way to format all dates from one place without using <f:convertDateTime>?

Thank you!


True person is moral, false is right!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

Unfortunately, no. And unless the tag explicitly overrides it, the timezone will be UTC.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to format all dates and times into user's default local time zone?
 
Similar Threads
how to set the Time zone ?
local time display in forum
How To Convert GMT
Time and time-zone
Time Zone