dryk50495
dryk50495
2018-05-21 18:04

服务器使用PHP返回的UTC日期时间与实际的UTC日期时间不同

  • timezone
  • php

My server has timezone set to UTC. so when I do echo date_default_timezone_get (); I get UTC.

But when I do echo date("Y-m-d H:i:s"); the datetime I get is around 33-34 mins late than actual UTC date time. I checked if there was time offset by doing echo date('Z'); but that returns 0 as well. What am I doing wrong here?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答

为你推荐

换一换