Hi Gus,

What you are seeing is one value has the time-zone of the server included in the time (9:00 -0500) which you can read as 9:00am-which- is-5-less-than-GMT. If you add those 5 hours back on, you get what you have in the bottom list: 14:00 GMT.

In short, 09:00 in your time-zone + 05.00 hours = 14:00 GMT.

Dealing with Date and Time in Java is really awful. Search the WO-Dev archives for numerous conversations bout dealing with it.

Dave

On Oct 10, 2008, at 1:49 PM, WebObjects wrote:

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.

Any suggestions?



Regards

Gus



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to