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.

  1. 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!

  2. check if 'europe/berlin' set somewhere in code. simple way in php files in folder:

find . -name "*.php" -exec grep -h "europe/berlin" {} \;


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -