• 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: NSTimestamp mapped to DATE for mysql
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimestamp mapped to DATE for mysql


  • Subject: Re: NSTimestamp mapped to DATE for mysql
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 25 Jan 2008 16:51:49 +1100

just following up again...  as this /feature/ has seemingly hit us too.

On 17/01/2008, at 2:53 AM, John Pollard wrote:

We have tables with mysql DATE type fields and EO attribute types of NSTimestamp.

After upgrading mysql from 5.0.18 to 5.0.45, the queries are no longer matching against dates correctly.

For recent dates the date in the query sent to the database has no time component, such as: 2008-01-01 00:00:00

But, for dates relating to British Summer Time, they appear in the log as: 2007-08-01 01:00:00

So a 1 hour shift has been applied to the time in the query for dates within BST.

Using mysql 5.0.18 this has/is working. With mysql 5.0.45 it no longer works, the queries relating to BST don't match the dates held on the datebase (just dates with no time).

Coincidentally, we recently upgraded our mysql server to 5.0.51 (and mysql-connector-java-5.1.5 it seems) and what do you know... one-hour shift for non-daylight savings times (here in Sydney)!


I'm seeing both that datetimes that are correctly stored in the db are retrieved wronly and timestamps stored lose an hour.

This bug seems completely relevant... but it's not been released yet:
http://bugs.mysql.com/bug.php?id=15604

Looking further...

with regards,
--

Lachlan Deck
_______________________________________________
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


References: 
 >NSTimestamp mapped to DATE for mysql (From: John Pollard <email@hidden>)

  • Prev by Date: [Announce] WO Community Directory
  • Next by Date: Re: [Wonder-disc] Eclipse don't cuild with Ant
  • Previous by thread: Re: NSTimestamp mapped to DATE for mysql
  • Next by thread: Re: NSTimestamp mapped to DATE for mysql
  • Index(es):
    • Date
    • Thread