php时间如何与硬件时钟(hwclock)相关?

时间:2017-10-09 11:07:03

标签: php linux timezone

我已正确设置时区到欧洲/都柏林,日光是真的,但我收到了错误的时间 - 提前1小时。 echo date("H:i:s"); // returns 11:03:49,应该是12:03:49。 Linux系统时间设置正确但是我可能需要在硬件时间改变一些东西?我该怎么做才能在php中获得正确的时间?

# hwclock --debug
hwclock from util-linux-ng 2.17.2
Using /dev interface to clock.
Last drift adjustment done at 1507541250 seconds after 1969
Last calibration done at 1507541250 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2017/10/09 10:03:49
Hw clock time : 2017/10/09 10:03:49 = 1507543429 seconds since 1969
Mon 09 Oct 2017 12:03:49 PM CEST  -0.094111 seconds

0 个答案:

没有答案
相关问题