Hello. I never topught was such a pain in the ass. but after reading
a little bit, even on PWO, (btw when I read what Chuck wrote in the
book, : Unfortunatley, there is no easy fix for this..." on page 231,
I was starting for freak out), what I did was using the
NSTimestampFormatter.
what I did was the following and it did work,.
NSTimestampFormatter formatter = new NSTimestampFormatter("%H:%M:%S
%z");
formatter.setDefaultFormatTimeZone(new NSTimeZone().localTimeZone());
String des = formatter.format(ts);
then I just need to use des...
I know in the WOTextField, or WOString I can use the "format" bidding,
gotta try that one as well.. so far the above worked.
:D:D:D
GUs
On Oct 10, 2008, at 4:21 PM, Andrew Lindesay wrote:
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]