Changing timezone in PHP

后端 未结 1 1300
故里飘歌
故里飘歌 2021-01-22 12:55

Alright, quick question.

A server is running in Eastern Time. PHP program needs to make date calculations using Central time.

At the moment, I am putting this li

1条回答
  •  时光取名叫无心
    2021-01-22 13:07

    You can use date_default_timezone_set and all the date/time functions in the script will use it.

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题