Thursday, February 24, 2011

Gwt Time Zones

Hi All,

I have been using the Gwt time zone classes for a while now in my
application and so far everything has been working brilliantly.

Recently I have added the time zone for Fiji
(TimeZoneConstants.pacificFiji()) to my application and I have only
just realised today that it is applying an offset of +12 hours instead
of +13 hours for the current date (24th Feb 2011).

Fiji is currently in daylight savings but the time zone returns false
when I call the isDaylightTime() method with todays date and therefore
it is applying the wrong offset. After delving into the Fiji time
zone's construction it looks like the transitions for it stop around
the year 2000 (I think this is correct).

After a bit of investigating into Fiji and daylight savings it seems
that they have only recently started observing daylight savings
(2009/2010) and as such this isn't contained within Gwt's Fiji time
zone implementation. This applies to version 2.1.1 of gwt-user.jar and
also looks to be the case in version 2.2.0.

Therefore I was wondering if anyone knows how often the time zone
information contained in TimeZoneContstants.properties is updated? And
how accurate the information contained within this file actually is?
Luckily enough none of the users of my system require this time zone
as of yet but we are expecting this to change relatively soon...

Any help with this would be appreciated.

Thanks,
Jason.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment