【问题标题】:Changing the default TimeZone of phpmyadmin更改 phpmyadmin 的默认时区
【发布时间】:2017-12-16 08:37:06
【问题描述】:

我创建了一个 QueryLog 表并有一列日期时间。我将默认值设置为时间戳,但时间戳提前 2 小时。如何将默认时间戳设置为我的时间?

【问题讨论】:

    标签: php mysql phpmyadmin timezone timestamp


    【解决方案1】:

    在你的文件 php.ini 中

    [Date]<br />
    ; Defines the default timezone used by the date functions<br />
    ; http://php.net/date.timezone<br />
    date.timezone ="Africa/Kigali"<br />
    

    更多详情time-zone-support

    请参考这个 SO 问题:setting-timezone-for-mysql-using-phpmyadmin

    【讨论】:

      猜你喜欢
      • 2018-09-24
      • 2012-11-25
      • 2017-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-09
      相关资源
      最近更新 更多