Re: Snow Leopard and TimeZones
Re: Snow Leopard and TimeZones
- Subject: Re: Snow Leopard and TimeZones
- From: Pascal Robert <email@hidden>
- Date: Mon, 19 Oct 2009 18:14:25 -0400 (EDT)
----- "Chuck Hill" <email@hidden> a écrit :
> On Oct 19, 2009, at 2:43 PM, David LeBer wrote:
>
> >
> > On 2009-10-19, at 5:31 PM, Miguel Arroz wrote:
> >
> >> Hi!
> >>
> >> Have you tried to change your system time zone? Just to see if all
>
> >> the timezones have a 5 minutes offset, or if you live in a bogus
> >> timezone. :)
> >>
> >> Yours
> >
> > Bingo! But weird.
> >
> > I'm in EDT, if I set my location to Toronto then I get the weird
> > behaviour.
>
> Speaking as a Western Canadian, that seems perfectly correct to me.
And we (Montreal) finally do something better than Toronto for a change! Cool :-)
>
> > Output from the DateTest.java
> >
> > sun
> > .util
> > .calendar
> > .ZoneInfo
> > [id
> > =
> > "GMT
> > -00
> > :
> > 05
> > ",offset
> >
> =-300000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
> > Mon Oct 19 21:35:52 GMT-00:05 2009
> >
> > If I change the location to something else in EDT i.e: Montreal, I
>
> > get:
> >
> > sun.util.calendar.ZoneInfo[id="America/
> >
> Montreal",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=231,lastRule=java.util.SimpleTimeZone[id=America/Montreal,offset=-18000000,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]]
> >
> > Which works, but is weird.
>
> Cough.
>
>
> Looks like someone mistyped a timezone.
>
>
> Chuck
>
>
> >> On 2009/10/19, at 22:14, David LeBer wrote:
> >>
> >>> On 2009-10-19, at 4:49 PM, Chuck Hill wrote:
> >>>
> >>>> I think this is a Java bug, not a WO one. The failing test below
>
> >>>> does not use any WO classes.
> >>>
> >>> Hrm.
> >>>
> >>> OK, is everyone else using Snow Leopard not seeing this date
> >>> issue? I don't want to start rebuilding my machine if I've got no
>
> >>> chance of resolving it.
> >>>
> >>>>
> >>>>
> >>>> On Oct 19, 2009, at 1:41 PM, David LeBer wrote:
> >>>>
> >>>>>
> >>>>> On 2009-10-13, at 3:58 PM, Michael Halliday wrote:
> >>>>>
> >>>>>> It shows the following:
> >>>>>>
> >>>>>> michael$ date
> >>>>>> Tue 13 Oct 2009 15:57:50 EDT
> >>>>>
> >>>>> Michael, did you find a resolution for this issue?
> >>>>>
> >>>>> I am seeing this on my dev machine, it's configured according to
>
> >>>>> Dave Avendasora instructions:
> >>>>>
> >>>>>
> <http://wiki.objectstyle.org/confluence/display/WOL/Using+WOLips+With+Multiple+Versions+of+WebObjects
>
> >>>>> >
> >>>>>
> >>>>> I see the same problem with WO5.3.3 and WO5.4.3, I've tried
> >>>>> manually updating the zoneinfo.zip files with no effect.
> >>>>>
> >>>>>>
> >>>>>>
> >>>>>> 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
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> 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
> >>>>>
> >>>>> ;david
> >>>>>
> >>>>> --
> >>>>> David LeBer
> >>>>> Codeferous Software
> >>>>> 'co-def-er-ous' adj. Literally 'code-bearing'
> >>>>> site: http://codeferous.com
> >>>>> blog: http://davidleber.net
> >>>>> profile: http://www.linkedin.com/in/davidleber
> >>>>> twitter: http://twitter.com/rebeld
> >>>>> --
> >>>>> Toronto Area Cocoa / WebObjects developers group:
> >>>>> http://tacow.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> 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
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>> ;david
> >>>
> >>> --
> >>> David LeBer
> >>> Codeferous Software
> >>> 'co-def-er-ous' adj. Literally 'code-bearing'
> >>> site: http://codeferous.com
> >>> blog: http://davidleber.net
> >>> profile: http://www.linkedin.com/in/davidleber
> >>> twitter: http://twitter.com/rebeld
> >>> --
> >>> Toronto Area Cocoa / WebObjects developers group:
> >>> http://tacow.org
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> 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
> >>
> >
> > ;david
> >
> > --
> > David LeBer
> > Codeferous Software
> > 'co-def-er-ous' adj. Literally 'code-bearing'
> > site: http://codeferous.com
> > blog: http://davidleber.net
> > profile: http://www.linkedin.com/in/davidleber
> > twitter: http://twitter.com/rebeld
> > --
> > Toronto Area Cocoa / WebObjects developers group:
> > http://tacow.org
> >
> >
> >
> >
> > _______________________________________________
> > 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
>
>
>
>
>
>
>
> _______________________________________________
> 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
--
-------------------------------------------------------
Pascal Robert
http://www.macti.ca
http://www.linkedin.com/in/macti
Skype: MacTICanada
AIM/iChat : MacTICanada
_______________________________________________
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