【发布时间】:2013-01-28 18:49:14
【问题描述】:
我有一个用户可以发表评论的博客。我使用NOW() 插入他们发表评论的时间,然后使用date('j M Y', stored timestamp) 显示他们发表评论的时间。
我想知道 NOW() 是否返回 locatime of the end user or the localtime at my server。
使用UNIX_TIMESTAMP 是否比NOW() 更适合计算用户发表评论的当地时间。
【问题讨论】:
-
this 可能有帮助
标签: mysql date unix-timestamp