RE: NSTimestamp
RE: NSTimestamp
- Subject: RE: NSTimestamp
- From: <email@hidden>
- Date: Wed, 12 May 2004 10:25:44 +0200
- Thread-topic: NSTimestamp
Hi!
How do you go about to determine that the NSTimestamp is late?
The output created by the toString() method formats the date for the GMT timezone. To see the timestamp in your own time zon you need a NSTimestampFormatter.
What is the date you are creating? There are some very UGLY bugs in NSTimeZone that makes handling of way past dates difficult. Actually the problem is that time zone offsets changed in the past. Your local time zone may have a GMT offset of 1 hour but may have had an offset of say 22 minutes in 1900. Starting with Java 1.4 such changes are consideres. NSTimeZone however is not aware of this. Thus passing an NSTimestamp for a date preceeding the lates offset change to a 'pure' Java method will lead to odd results.
Pierre.
-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Ute Hoffmann
Sent: Wednesday, May 12, 2004 10:05 AM
To: email@hidden
Subject: NSTimestamp
Hallo,
is there a known issue with NSTimestamps being one hour late? I have
this issue when I create a new Timestanp with:
NSTimestamp xx = new NSTimestamp();
xx will be exactly one hour late in comparison with the shown server
time. I can reproduce this on my development machine and on my
deployment machine. The server time is in both cases exactly one hour
different from the time the new timestamp shows. The timezone of the
servers is correctly set. The Machines are Mac OS X 10.2.8 Client.
I have contacted Christian Telepski, who posted before on this issue,
but he has not resolved it yet.
Is this a programming issue, i.e. should I create my Timestamp for the
current time differently? Or should I not use NSTimestamp at all?
Thanks for some input,
regards
Ute
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.