Re: Snow Leopard and TimeZones
Re: Snow Leopard and TimeZones
- Subject: Re: Snow Leopard and TimeZones
- From: Mark Ritchie <email@hidden>
- Date: Mon, 19 Oct 2009 14:37:13 -0700
On 19Oct2009, at 1:41 PM, David LeBer wrote:
... I am seeing this on my dev machine ...
Hey David!
What do you see when you run the code that was posted before?
Here's what I see.
Marks-MacBook:~ mark$ cat DateTest.java
class DateTest {
public static void main(String args[]) {
java.util.Calendar now = java.util.Calendar.getInstance();
System.out.println(now.getTimeZone());
System.out.println(now.getTime());
}
}
Marks-MacBook:~ mark$ javac DateTest.java
Marks-MacBook:~ mark$ java DateTest
sun.util.calendar.ZoneInfo[id="America/
Los_Angeles
",offset
=
-28800000
,dstSavings
=
3600000
,useDaylight=true,transitions=185,lastRule=java.util.SimpleTimeZone
[id=America/
Los_Angeles
,offset
=
-28800000
,dstSavings
=
3600000
,useDaylight
=
true
,startYear
=
0
,startMode
=
3
,startMonth
=
2
,startDay
=
8
,startDayOfWeek
=
1
,startTime
=
7200000
,startTimeMode
=
0
,endMode
=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]
Mon Oct 19 14:35:17 PDT 2009
Marks-MacBook:~ mark$
Marks-MacBook:~ mark$ date
Mon 19 Oct 2009 14:35:29 PDT
And for the record, I agree with Chuck!
Strictly speaking my not be a WO issue however still important. ;-)
M.
_______________________________________________
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