• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Snow Leopard and TimeZones
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Snow Leopard and TimeZones


  • Subject: Re: Snow Leopard and TimeZones
  • From: Ramsey Lee Gurley <email@hidden>
  • Date: Mon, 19 Oct 2009 23:23:37 -0400


On Oct 19, 2009, at 9:41 PM, David LeBer wrote:


On 2009-10-19, at 9:36 PM, Michael Halliday wrote:


On 2009-10-19, at 4: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?

Not until now ... my timezone was set for London - Canada ... I had tried Toronto - Canada ... same issue. Didn't think to keep trying until I got one that worked!! LOL. It appears that the following two work for sure:


Ottawa - Canada
Montreal - Canada

Hopefully Apple fixes this issue ... I thought I was going crazy there for a while. I was about to rebuild my brand new machine as well!! Just glad it wasn't a server ... that would have really screwed things up. I was getting JDBC date errors, not fun. Took me a while to realize I was dealing with different timezones!

Hey Michael,

I filed a radar, feel free to duplicate it if you wish (the more voices, the more likely a fix).

As an alternative to changing your location in Date & Time you can explicitly set the default timezone like this:

       TimeZone tz = TimeZone.getTimeZone("America/Toronto");
       TimeZone.setDefault(tz);
       NSTimeZone.setDefault(tz);

This seems to work fine for me.


I do the same in the app constructor using GMT. No problems here. I can't say I've tried a Canadian time zone though (^_^) I also have a Wonder patch up on JIRA (still under consideration) if anyone is interested. It automatically adjust dates for time zones in WOStrings and WOTextfields. Those two get the value from the ERXSession instance... so set your timezone in one place and it is adjusted automatically throughout the entire app. Well, at least as far as WOStrings and WOTextfields with dateformat bindings are concerned.

http://issues.objectstyle.org/jira/browse/WONDER-279

It's off by default though, since this would be a change from existing behavior. If you apply the patch, you can enable it using the property

er.extensions.ERXSession.autoAdjustTimeZone=true

Ramsey




Cheers, Michael.


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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Snow Leopard and TimeZones (From: Michael Halliday <email@hidden>)
 >Re: Snow Leopard and TimeZones (From: Miguel Arroz <email@hidden>)
 >Re: Snow Leopard and TimeZones (From: Michael Halliday <email@hidden>)
 >Re: Snow Leopard and TimeZones (From: Chuck Hill <email@hidden>)
 >Re: Snow Leopard and TimeZones (From: Michael Halliday <email@hidden>)
 >Re: Snow Leopard and TimeZones (From: David LeBer <email@hidden>)
 >Re: Snow Leopard and TimeZones (From: Michael Halliday <email@hidden>)
 >Re: Snow Leopard and TimeZones (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Snow Leopard and TimeZones
  • Next by Date: Re: Snow Leopard and TimeZones
  • Previous by thread: Re: Snow Leopard and TimeZones
  • Next by thread: Re: Snow Leopard and TimeZones
  • Index(es):
    • Date
    • Thread