Hi all, Executing the following code with a default time zone of US Eastern time
NSTimestamp ts1 = new NSTimestamp(2009,11,1,0,0,0,NSTimeZone.defaultTimeZone()); NSTimestamp ts2 = ts1.timestampByAddingGregorianUnits( 0, 0, 1, 0, 0, 0 ); NSTimestamp ts3 = new NSTimestamp(2009,11,2,0,0,0,NSTimeZone.defaultTimeZone());
System.out.println(NSTimeZone.defaultTimeZone().getID()); System.out.println(ts1 + "\n" + ts2 + "\n" + ts3); produces the following result :-/ America/New_York 2009-11-01 04:00:00 Etc/GMT 2009-11-02 04:00:00 Etc/GMT 2009-11-02 05:00:00 Etc/GMT Is this a known bug? Ramsey
_______________________________________________ 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]
