Re: Getting a wrong stored time
Re: Getting a wrong stored time
- Subject: Re: Getting a wrong stored time
- From: Andrew Lindesay <email@hidden>
- Date: Sat, 11 Oct 2008 10:21:16 +1300
Hello Gus;
Is your application server running in GMT. It is best to store your
date/time data relative to GMT and then to convert it to a user's
timezone using formatters in your user interface.
cheers.
Hello I have an attribute in a table called Start_Date_Time. which
is a timestamp in the db schema.
in the EOModel I used a dateTime prototype and external type
timestamp and data type Timestamp- NSTimestamp T
I have the following data in that attribute
-1-12-30 09:00:00 -0500
-1-12-30 12:00:00 -0500
-1-12-30 15:00:00 -0500
-1-12-30 18:00:00 -0500
After I fetch all those, and print them Im getting the following
1-01-01 14:00:00 Etc/GMT
1-01-01 17:00:00 Etc/GMT
1-01-01 20:00:00 Etc/GMT
1-01-01 23:00:00 Etc/GMT
As you can see the 3 hours diference between times still remains
even in the weird output.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
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