| Bug #34135 | Each year April has a one hour block that won't accept a valid timestamp | ||
|---|---|---|---|
| Submitted: | 29 Jan 2008 14:51 | Modified: | 31 Jan 2008 16:32 |
| Reporter: | Christopher Shaw | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
| Version: | 5.0, 5.1 | OS: | Windows (XP, server 2003) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | april, timestamp | ||
[29 Jan 2008 14:51]
Christopher Shaw
[29 Jan 2008 16:31]
MySQL Verification Team
Thank you for the bug report. Which exactly version are you using?. I wasn't able to repeat with a server 4 source days older. Please provide your my.ini file and the create table, insert data sample. Thanks in advance.
[29 Jan 2008 19:28]
Jim Winstead
Check the timezone on the two systems. This looks like a daylight savings time issue.
[29 Jan 2008 20:26]
Christopher Shaw
It's running everything on a laptop. Does MySQL just use the system time or does it track it itself? I'm in a class now, but I'll get the configuration file and other information later today.
[29 Jan 2008 22:46]
Christopher Shaw
My.ini
Attachment: my.ini (application/octet-stream, text), 9.03 KiB.
[29 Jan 2008 22:57]
Christopher Shaw
Version: 5.1.22
mysql> CREATE TABLE `date` (`d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Query OK, 0 rows affected (1.48 sec)
mysql> INSERT INTO date (d) VALUES ('2007-04-01 02:02:02');
ERROR 1292 (22007): Incorrect datetime value: '2007-04-01 02:02:02' for column '
d' at row 1
mysql> show variables like '%zone%';
+------------------+-----------------------+
| Variable_name | Value |
+------------------+-----------------------+
| system_time_zone | Central Standard Time |
| time_zone | SYSTEM |
+------------------+-----------------------+
2 rows in set (0.69 sec)
My timezone is set to CST
[31 Jan 2008 16:32]
Sergei Golubchik
There's no bug here. The datetime value 2007-04-01 02:02:02 is, indeed, incorrect, there was no such time in CST. Right after 2007-04-01 01:59:59 comes 2007-04-01 03:00:00, see, for example http://www.timeanddate.com/worldclock/meetingtime.html?day=1&month=4&year=2007&p2=155&iv=1...
[3 Apr 2008 23:54]
MySQL Verification Team
Bug: http://bugs.mysql.com/bug.php?id=35815 was marked as duplicate of this one.
