I found this thread, spending some time figuring out why, after running the command in the accepted answer (which is the same on the dev site), MySQL was unable to convert between time zones, such as
SELECT CONVERT_TZ('2004-01-01 12:00:00','UTC','MET') AS time
Turns out there are two files on OS X that cause problems: /usr/share/zoneinfo/Factory and /usr/share/zoneinfo/+VERSION .
Fix ... temporarily moving these files to another location, for example /usr/share/zoneinfo/.bak/ , allows you to execute the command
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
to completely fill out all expected time zone information.
This may or may not be an error in my installed version of MySQL:
$ mysql --version mysql Ver 14.14 Distrib 5.6.11, for osx10.6 (x86_64) using EditLine wrapper
I also work at STRICT_MODE .
In any case, I hope this will save a few headaches for anyone who is looking for a fix.
Jim Schubert Aug 13 '13 at 17:01 2013-08-13 17:01
source share