httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael B Allen" <iop...@gmail.com>
Subject [users@httpd] Strange Timezone Switching Between GMT and US\Eastern in Module
Date Sat, 09 Feb 2008 02:37:48 GMT
I have an Apache module that uses localtime(3) to generate timestamps
for logging. When the module is running and executed by worker
processes these timestamps are correctly US\Eastern time. However,
when the module is initializing and deinitializing as the root
process, the timestamps are in GMT time.

Or rather I have a customer with a log showing this. I have not been
able to reproduce the problem outside of calling setenv("TZ", "GMT",
1); tzset();.

I would suspect that /etc/localtime was wrong but if that were the
case the timestamps would be wrong all the time no?

Anyone have an idea as to what might be happening?

Mike

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message