• 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: Problems w/ NSTimestamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems w/ NSTimestamp


  • Subject: Re: Problems w/ NSTimestamp
  • From: Jonathan Miller <email@hidden>
  • Date: Tue, 27 Sep 2005 10:07:33 -1000

The only two options I have are Date and Timestamp

What's stranger is that when I use the method EOUtilities.rawRowsForSQL I have the same problem.

If I put the same SQL into the database I get a different answer?

<-- Edit My Database is defined as a Date Column (I was going back and forth and forgot which one I was using) -->


On Sep 26, 2005, at 9:50 PM, Wolfram Stebel wrote:

Am 27.09.2005 5:15 Uhr schrieb "Jonathan Miller" unter
<email@hidden>:


Hi-

     I have an entity with an attribute that is defined as
NSTimestamp.  That attributes corresponding column in the database is
a Timestamp.  From the DB I can see that data is being correctly
entered, however when I go to display this data it keeps the correct
date but loses the time values (displays everything as 12AM/GMT).
I've tried using the NSTimestampFormatter class but with no success.

I think, the db data type should be something like DATETIME...
I use NSTimestamp for derived attributes, which are read only.
check the content of the database, i suspect you loose the data on write,
not on read!


Wolfram




_______________________________________________ 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
  • Prev by Date: Re: WOText and HTML
  • Next by Date: Can't remove extraneous spacing.
  • Previous by thread: Re: Problems w/ NSTimestamp
  • Next by thread: WOMailDelivery how to
  • Index(es):
    • Date
    • Thread