Strange Timezone Switching Between GMT and US\Eastern in Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux