Apache time stamp incorrect

后端 未结 3 1235
情深已故
情深已故 2021-01-14 01:02

I am using WAMP server running PHP. At a particular step I am trying to capture system time and add it to the database with the following query

$strSQLInsert         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-01-14 01:47

    I'm using wampserver 3.0 and having the same issue even after changing date.timezone for both files:

    • \bin\php\php5.6.15\phpForApache.ini
    • \bin\php\php5.6.15\php.ini

    After the changes the server was stopped/started, also tried using the restart button. Result are the following:

    • Date is ok (as before) but time is still off by exactly 50 minutes.
    • Apache access log shows correct time offset at +8 hours
    • Php error log shows correct time zone

提交回复
热议问题