我们有一个脚本通过 PHP myAdmin 运行,如下:
UPDATE utilities_alert SET date=CONVERT_TZ(date,'-06:00','00:00');
UPDATE utilities_update SET date=CONVERT_TZ(date,'-06:00','00:00');
UPDATE utilities_assetlocation SET start=CONVERT_TZ(start,'-06:00','00:00');
UPDATE utilities_assetlocation SET end=CONVERT_TZ(end,'-06:00','00:00');
UPDATE utilities_idlelog SET date=CONVERT_TZ(date,'-06:00','00:00');
它不起作用并返回 NULL 值。然后我遇到了这个
http://www.geeksengine.com/article/populate-time-zone-data-for-mysql.html
,遵循所有步骤,但无济于事。