My web server is in a timezone different from mine and I am using this pattern layout in the Log4perl config:
log4perl.appender.LOGFILE.layout=PatternLayout
log4perl.appender.LOGFILE.layout.ConversionPattern=%d | %p | %l | %c | %m%n
The %d produces a date/time in the timezone of the server. How can I make it log the date/time in my local timezone instead?
I am aware that the following:
$Log::Log4perl::DateFormat::GMTIME = 1;
Causes date/time to be logged in GMT however I could find nothing in the documentation to support arbitrary timezones.