| Bug #22695 | MySQL doesn't update function of checking validation when daylight saving time | ||
|---|---|---|---|
| Submitted: | 26 Sep 2006 7:57 | Modified: | 3 Oct 2006 8:49 |
| Reporter: | Yongliang Ai | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S1 (Critical) |
| Version: | 5.0.24a | OS: | Windows (Windows XP) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | check, DST, time | ||
[26 Sep 2006 7:57]
Yongliang Ai
[26 Sep 2006 8:28]
Sveta Smirnova
Thank you for the report. Could you please provide output of SHOW CREATE TABLE your_table_with_timestamp_field;, SHOW VARIABLES LIKE 'time_zone'; and SELECT @@sql_mode; statements?
[26 Sep 2006 9:04]
Yongliang Ai
...
`EVENT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
...
mysql> SHOW VARIABLES LIKE 'time_zone'
-> ;
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| time_zone | SYSTEM |
+---------------+--------+
1 row in set (0.00 sec)
System time_zone is GMT-05:00 Eastern time (US&Canada).
mysql> SELECT @@sql_mode;
+----------------------------------------------------------------+
| @@sql_mode |
+----------------------------------------------------------------+
| STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
+----------------------------------------------------------------+
1 row in set (0.03 sec)
[26 Sep 2006 9:40]
Sveta Smirnova
Thank you for the feedback. Did you have timezone tables installed? Your table with TIMESTAMP field is InnoDB table?
[26 Sep 2006 10:09]
Yongliang Ai
No, I don't download timezone tables. Yes, I use InnoDB.
[27 Sep 2006 8:56]
Sveta Smirnova
Did you install http://www.microsoft.com/windows/timezone/dst2007.mspx? If not, please, do it and try to repeat the issue.
[27 Sep 2006 8:58]
Sveta Smirnova
Please, don't forget to restart MySQL server after installing timezone update.
[28 Sep 2006 3:01]
Yongliang Ai
There's no update package for download. How to update windows? Thank you!
[28 Sep 2006 6:12]
Sveta Smirnova
Looks like you should use automatic Windows Update tool (you can found it in the Control Panel).
[30 Sep 2006 2:49]
Yongliang Ai
I have update my WindowsXP sp2 to the latest. But the problem still exists. And in that page, MS doesn't release its final update for DST. So I think windows doesn't update this problem. Do you mean MySQL just use windows's function to check time validation? Thank you!
[3 Oct 2006 8:49]
Sveta Smirnova
Yes, MySQL uses windows's function to check time validation for SYSTEM timezone. So we can do nothing here.
[15 Jan 2007 14:30]
Manish Gupta
I am facing the same problem as described. But the problem is that I am on Linux (Cent OS 4). Any suggestions? Thanks!!
[26 Jan 2007 8:42]
Sveta Smirnova
Manish, same answer: as MySQL uses operating system's function to check time validation for SYSTEM timezone, upgrade your system
