dryk50495
2018-05-21 18:04服务器使用PHP返回的UTC日期时间与实际的UTC日期时间不同
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条回答
为你推荐
- 使用Gocron Scheduler在特定日期的特定时间安排作业
- cron
- 2个回答
- 如何使用golang将UTC转换为印度当地时间
- datetime
- time
- 2个回答
- 如何使用Golang获取UTC时间的时间戳?
- unix-timestamp
- timestamp
- 2个回答
- WordPress RSS feed获取日期是UTC时间
- rss
- wordpress
- php
- date
- 1个回答
- PHP + MySQL存储UTC时间戳与日期时间
- datetime
- timezone
- symfony
- php
- mysql
- 1个回答
换一换