Re: Apache time zone > daylight saving time > missing an hour of logs?

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

 



On Mon, Mar 11, 2013 at 10:33 AM, Lester Caine <lester@xxxxxxxxxxx> wrote:
> Tom Evans wrote:
>>
>> Don't run Apache in a locale with DST if you do not want local DST
>> times in the logs. Use the C locale instead.
>
>
> The only thing that is consistent is UTC, and by default that should be all
> that is running on a server. A client may well be in the same location, but
> it's the client viewing information that should be the point at which
> DISPLAY of times is modified to a particular time zone view.
>

The only thing that is consistent is that the locale that you run your
programs under, and hence how they format dates, is entirely under the
control of the person running the program.

UTC may well make perfect sense for you, it may not for someone else,
and therefore it should be configurable.

If you want UTC times reported, use a locale that has UTC as the
timezone. Don't use a locale which is subject to DST and then complain
that your logged dates have DST in them!

If you're running windows, then your only option is to set the time
zone on the machine to UTC. On everything that is not windows, running
httpd in the C locale (LC_ALL=C) and/or setting the timezone
(TZ="UTC") has the same effect.

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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