php - Different timestamp on php_error.log -
i'm using mamp on macbook pro, , whenever took php_error.log each error timestap berlin i'm in south america.
[16-jan-2016 03:06:40 europe/berlin] php parse error:
the actual time when error happened 21:06.
how can change timestamp? know not big deal easier debug when date correct.
the timezone indeed set berlin somewhere in system or code.
check /usr/local/etc/php/(version)/php.ini file , date.timezone setting. full list of supported timezones available here. modify setting if necessary , restart php process/server. if setting not present, it's idea fix now!
check if 'europe/berlin' set somewhere in code. simple way in php files in folder:
find . -name "*.php" -exec grep -h "europe/berlin" {} \;
Comments
Post a Comment