• 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: Getting a wrong stored time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a wrong stored time


  • Subject: Re: Getting a wrong stored time
  • From: WebObjects <email@hidden>
  • Date: Fri, 10 Oct 2008 16:57:16 -0500


Hello, I dunno what im doing wrong.. but even if I change in the server timezone popup menu in EOModeler to GTM or whatever other timezone... it still keep saying etc/GMT at the end of the line. is it there where I should change it to be relative to GMT?..



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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Getting a wrong stored time
      • From: Andrew Lindesay <email@hidden>
    • Re: Getting a wrong stored time
      • From: Lachlan Deck <email@hidden>
References: 
 >Getting a wrong stored time (From: WebObjects <email@hidden>)
 >Re: Getting a wrong stored time (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Re: Getting a wrong stored time
  • Next by Date: Re: OT: Nextstep... Oldie but goody
  • Previous by thread: Re: Getting a wrong stored time
  • Next by thread: Re: Getting a wrong stored time
  • Index(es):
    • Date
    • Thread