Hi Folks,
because the Timezone information was obsolete, i recently updated the
Java Timezone data from 'tzdata2003a' to 'tzdata2008g' by using
'tzupdater.jar'.
NSTimezone example for Asia/Shanghai:
System.out.println("***** Timezone = " +
NSTimeZone.timeZoneWithName("Asia/Shanghai", true) + " / useDaylightTime
= " + NSTimeZone.timeZoneWithName("Asia/Shanghai",
true).useDaylightTime());
...returns...
***** Timezone = Asia/Shanghai (CST) offset 28800 / useDaylightTime =
true
java.utils.TimeZone example for Asia/Shanghai:
System.out.println("***** Timezone = " +
TimeZone.getTimeZone("Asia/Shanghai"));
...returns...
***** Timezone =
sun.util.calendar.ZoneInfo[id="Asia/Shanghai",offset=28800000,dstSavings=0,useDaylight=false,transitions=19,lastRule=null]
Short: NTTimezone is telling me, that in Shanghai DST is used and
java.util.TimeZone tells me that it is not used. I know that in Shanghai
there is no DST at all.
Since NSTimezone inherits from java.util.TimeZone this difference is
some kind of weird but i could not figure out how to update the
NSTimezone information or anything else what would cause into correct
results.
Any hints are welcome.
Regards
Andri
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]