php - Log4php wrong time -


i'm new user of log4php , have problem time. time logged in log file late of 2 hours compared real time. configuration file contains:

< layout class="loggerlayoutpattern"> < param name="conversionpattern" value="%-5level %date{y-m-d h:i:s,u} %logger %msg%n" /> < /layout>

my configuration:

  • apache-log4php-2.3.0
  • wampserver 2.4 -x64
  • windows 7 64 bits

how can correct time ? advice :)

have set timezone in php script?

you can set like:

date_default_timezone_set('europe/amsterdam'); 

or can set on server in php.ini or .htaccess files shown in following article. how set timezone on php server.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -