File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
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>?
True person is moral, false is right!
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?
Time and time-zone
local time display in forum
how to set the Time zone ?
How To Convert GMT
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014