本文介绍了GMT与UTC日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个内置JavaScript的日历,将日期与PHP进行比较。 JavaScript日期对象使用PHP设置,但是当我比较未来的日期时,它们似乎不同步。

I have a calendar built in JavaScript that compares dates with PHP. The JavaScript date object is set using PHP, but, when I compare future dates, they appear to be out of sync.

PHP设置为GMT,JavaScript设置为世界标准时间;这些标准如何不同,这可能会导致问题吗?

PHP is set to GMT and JavaScript is set to UTC; how do these standards differ, and could this be causing the problem?

推荐答案

从维基百科的:

这篇关于GMT与UTC日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 10:25