Re: rotatelogs: log name is one day off "i5mast" <mstrumyla@gmail.com> schreef in bericht
news:277eb25a-13c7-4c70-bc8c-8f7c84c9899f@k6g2000prg.googlegroups.com...
>On Feb 8, 3:27 pm, i5mast <mstrum...@gmail.com> wrote:
>> Hello, I have the following configuration.
>> OS: CentOS release 5.4 (Final)
>> Server version: Apache/2.2.14 (Unix)
>> Server built: Oct 26 2009 06:33:38
>> Cpanel::Easy::Apache v3.2.0 rev4801
>>
>
>I think I got to the bottom (almost) of this issue. The issue is that
>system calls localtime/gmtime(t) give me incorrect time. Given this
>perl script:
>
>#!/usr/local/bin/perl
>use POSIX qw(strftime);
>$now_string = strftime "%a %b %e %H:%M:%S %Y", localtime(1266969600);
>print $now_string."\n";
>
>Tue Feb 23 18:59:36 2010
>
>I expect to see this:
>Tue Feb 23 19:00:00 2010
>
>The time is off by 24 seconds. Any ideas?
Since Januari 1st, 1970 the net count of leap seconds is 24 ... http://en.wikipedia.org/wiki/Leap_second
Your CentOS appears to be using a LeapSecond aware TimeZone setting, compare
the two results of
$ TZ=CET date; TZ=right/CET date; |