0

My PHP error log has the wrong timezone listed. I have the correct timezone on my system as can be seen by typing the date command at the Debian command prompt. I have restarted rsyslogd by typing service rsyslog restart. I have even rebooted the server just to make sure. Any ideas what is wrong here?

kojow7
  • 10,308
  • 17
  • 80
  • 135
  • 2
    There's a separate `php.ini` setting for the timezone. – mario Jun 06 '15 at 18:40
  • Doesn't php.ini take the system timezone if nothing is specified here? – kojow7 Jun 06 '15 at 18:40
  • 1
    Older versions did. Nowadays it demands to be hand-fed. – mario Jun 06 '15 at 18:42
  • Also, doesn't the timezone in php.ini just apply to date functions? – kojow7 Jun 06 '15 at 18:42
  • Thank you Mario. I have done that and it fixed the problem. I had read a couple of other places that the dates listed in the error log file were determined by syslog and not by php. I guess I was reading incorrect (or old) information. Thanks! – kojow7 Jun 06 '15 at 18:47
  • Any ideas were php.ini gets its default timezone from when it is not set in php.ini? – kojow7 Jun 06 '15 at 18:49

0 Answers0