dbTalk Databases Forums  

Amusing MySQL date error

comp.databases.mysql comp.databases.mysql


Discuss Amusing MySQL date error in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Nagle
 
Posts: n/a

Default Amusing MySQL date error - 04-09-2011 , 01:26 PM






I got the message

(1292, "Incorrect datetime value: '2011-03-13 02:18:28' for column
'first_seen' at row 1")

This is because that hour doesn't exist if MySQL is working with
local times. That's the skipped hour during which daylight savings
time started.

It's good that MySQL catches this. I had to do a

SET time_zone="+00:00";

to set the connection to UTC.

John Nagle

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.