阅读背景:

在将数据从PHP传输到JavaScript时计算时区偏移量

来源:互联网 

Okay, this is sort of an odd question. In one of my modifications, the PHP code stores timestamps in a database using time() - as far as I know, this uses the UTC timezone. Now, I grab this data and use it as a parameter in some Javascript function. This function returns a time string similar to "30 seconds ago" or "2 hours and 30 minutes ago", etc etc. Here's the complete function: Okay, this is sort of an odd question. In one o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: