Mysql -- 设置中国时区时间 查看mysql的时区设置 mysql> show variables like '%time_zone%'; 修改mysql的时区设置, 注:mysql的默认时区是UTC,+8:00是中国所在时区(东八区) mysql> set time_zone = '+8:00'; 参考链接:http://virusswb.blog.51cto.com/115214/1046723/
最近在项目中碰到审核日志的时间为GMT格式 ,如何格式化成本地时间. 网站集设置成本地区域无法解决此类问题,后来查询资料才知道.无法更改 Change Audit Time From GMT Time Zone? Audit entries are stored in GMT, so that is what you get in Excel. Looks like you can easily convert it within Excel, though: http://www.ehow.