参考:http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html
useTimezone Convert time/date types between client and server timezones (true/false, defaults to 'false')?
但我始终无法理解这个参数具体的作用是什么,在什么情况下会用到?
可以举个例子给我吗?谢谢!
主要用在web服务器和数据库部署在不同时区时,转换二者交互中时间数据。例如:
stackoverflow上有个问答,可以参考:http://stackoverflow.com/questions/7605953/how-to-change-mysql-timezone-in-java-connection