How to format the date string to get the timezone information stored in a MySQL DATETIME field? Does DATETIME store timezone information at all?
No, neither DATETIME
nor TIMESTAMP
data types store tz data.
TIMESTAMP
values are translated from the current session time zone to UTC upon storage, and translated back to the current session time zone.
What's the current session time zone? Read this.
http://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.