I’m using an InlineDateField to display and capture a date and time. I set the Resolution to ‘InlineDateField.RESOLUTION_MIN’ and it works fine except it will only dicplay in GMT.
I want to display in localtime. I’ve tried changing the locale but that only changes the time format from 24H to AM/PM. I’m in South Australia and we have a half hour time offset (currently UTC+10:30 daylight saving time).
I can’t find a way to change the timezone. I’ve tried playing around with setDateFormat() but that doesn’t seem to make any difference.
Is there a way to force it to display in localtime?
I’m running it under Glassfish 2.1 on a Windows Vista machine. The locale and timezone are set correctly on the PC.
Thanks Joonas, it was my Glassfish settings. Glassfish sets the JVM timezone and it defaults to GMT. I set it to the correct Timezone and everything is now ok, thanks.
Sounds like you have this one sorted now but, interestingly(ish), we have just had a similar issue with an Australian client of ours and it turned out to be down to the recent alterations to Australian Daylight Saving Time (2008) and an old JRE that wasn’t aware of these changes.
Anyway - there is a DST
updater that SUN provides to ensure the JRE is up to date.