Re: Snow Leopard and TimeZones
Re: Snow Leopard and TimeZones
- Subject: Re: Snow Leopard and TimeZones
- From: Chuck Hill <email@hidden>
- Date: Thu, 15 Oct 2009 11:55:18 -0700
Looks like something is messed up in the Java date data.
These might help
http://worldofwebobjects.blogspot.com/2007/01/not-exactly-masters-of-time-and-space.html
In Wonder TickTockMan - example app that performs various time-related
tasks. Hopefully, this can become a resource for people trying to
understand the use of time, time intervals, time zones and associated
objects in WebObjects applications.
I thought that Ray had some other code to patch this stuff up.
Chuck
On Oct 13, 2009, at 12:58 PM, Michael Halliday wrote:
It shows the following:
michael$ date
Tue 13 Oct 2009 15:57:50 EDT
Cheers,
Michael.
On 2009-10-13, at 3:07 PM, Chuck Hill wrote:
Open up a command line on that machine and type date:
chuck$ date
Tue Oct 13 12:06:50 PDT 2009
What does it show?
Chuck
On Oct 13, 2009, at 11:58 AM, Michael Halliday wrote:
Hi,
No it's for sure 00:05 ... if I run the following test:
public static void main(String[] args)
{
Calendar now = Calendar.getInstance();
System.out.println(now.getTimeZone());
System.out.println(now.getTime());
}
I get:
sun
.util
.calendar
.ZoneInfo
[id
=
"GMT
-00
:
05
",offset
=-300000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
Tue Oct 13 18:50:58 GMT-00:05 2009
It's very strange. I did a clean install of Snow Leopard too.
Cheers,
Michael.
On 2009-10-13, at 2:10 PM, Miguel Arroz wrote:
Hi!
Are you sure it's 00:05 and not 05:00?
Yours
Miguel Arroz
On 2009/10/13, at 18:39, Michael Halliday wrote:
Hey Guys,
Has anyone noticed any time zone issues with Java and Snow
Leopard?
Ever since migrating to snow leopard, my java default timezone
is GMT-00:05, when my system is actually GMT-04:00 (America/
Toronto EDT).
Anyone else noticing this? I'm running Mac OS X 10.6.1 with WO
5.4.3.
java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
Cheers,
Michael.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden