PHP universally convert time to users preference
This question already has an answer here:
See Daylight saving time and time zone best practices
Bottom line: store UTC timestamps internally, translate all user input from and to their preferred time zone. That's pretty much it.
链接地址: http://www.djcxy.com/p/29344.html上一篇: 将当前日期时间存储在数据库中的最佳属性
下一篇: PHP通用将时间转换为用户偏好