• 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: WebObjects 5.3.3, DST and J2SE 1.4.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebObjects 5.3.3, DST and J2SE 1.4.2


  • Subject: Re: WebObjects 5.3.3, DST and J2SE 1.4.2
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Mon, 12 Mar 2007 10:34:16 -0700

Good follow-up, here is where I was basing the deprecation notice on:

<http://developer.apple.com/documentation/LegacyTechnologies/ WebObjects/WebObjects_5/FoundationRef/Java/Classes/NSTimestamp.html>

and search for the definition of <timestampByAddingGregorianUnits>, it's the 3rd occurrence on the page. It's odd how Google often returns old URL's for WebObjects stuff.

On Mar 12, 2007, at 9:11 AM, Mark Ritchie wrote:

Hi Baiss!

I'm glad to hear that your problem has been fixed!
Here are two points I think are important to clarify:

On 9-Mar-07, at 6:08 PM, Baiss Eric Magnusson wrote:
timestampByAddingGregorianUnits in the docs.
public NSTimestamp timestampByAddingGregorianUnits( int year, int month, int day, int hour, int minute, int second)
Deprecated in the Java Foundation framework. Don't use this method.
Hrm, the WOF 5.3 docs don't say that it's deprecated!
I don't know where you're seeing the deprecated message.
(Also, for the record, I don't get a deprecation warning when I use this method.)

<http://developer.apple.com/documentation/WebObjects/Reference/API/ com/webobjects/foundation/ NSTimestamp.html#timestampByAddingGregorianUnits(int, int, int,% 20int, int, int)>


That's because the <timestamp> refers to Greenwich time zone by default and so when DST occurs there at the end of March the time syncs back.
Just to be clear, GMT (also called UTC) doesn't change for daylight savings time. As you've already posted, it was a coding problem. I'm still not clear on the coding trouble so I'm going to look at it when I have a minute but just because I *have* to know why it broke! :-)

Regards,
Mark
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada




---- Baiss Eric Magnusson <http://www.Track-Your-Finances.com> <http://www.CascadeWebDesign.com>


_______________________________________________ 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
  • Follow-Ups:
    • Re: WebObjects 5.3.3, DST and J2SE 1.4.2
      • From: Mark Ritchie <email@hidden>
References: 
 >WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Baiss Eric Magnusson <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Pascal Robert <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Baiss Eric Magnusson <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Ken Anderson <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Baiss Eric Magnusson <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Chuck Hill <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Baiss Eric Magnusson <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Mark Ritchie <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Baiss Eric Magnusson <email@hidden>)
 >Re: WebObjects 5.3.3, DST and J2SE 1.4.2 (From: Mark Ritchie <email@hidden>)

  • Prev by Date: Re: Using Links for submitting forms
  • Next by Date: Re: WebObjects 5.3.3, DST and J2SE 1.4.2
  • Previous by thread: Re: WebObjects 5.3.3, DST and J2SE 1.4.2
  • Next by thread: Re: WebObjects 5.3.3, DST and J2SE 1.4.2
  • Index(es):
    • Date
    • Thread