PHP universally convert time to users preference

This question already has an answer here:

  • Daylight saving time and time zone best practices [closed] 30 answers

  • 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通用将时间转换为用户偏好