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
Post a Comment