阅读背景:

在Rails中将本地时间转换为UTC

来源:互联网 

In my MySQL database the updated_at field is being stored as UTC. Last week a record was entered at 7pm EDT and it's updated_at value is "2012-08-01 23:00:00". I'm trying to convert local time for a web client to UTC that can be compared against the updated_at field in the database.In my MySQL database the updated_at field is be




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

分享到: