A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to format all dates and times into user's default local time zone?
Joined: Mar 29, 2012
Dec 04, 2012 08:48:46
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>?
Joined: Jun 25, 2001
Dec 05, 2012 04:52:25
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:
subject: How to format all dates and times into user's default local time zone?
How To Convert GMT
local time display in forum
Time and time-zone
how to set the Time zone ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013