Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Bin Smith
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, no. And unless the tag explicitly overrides it, the timezone will be UTC.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!