Go Back   Garayed.com > Apache Configurations
Reply
 
LinkBack Thread Tools Search this Thread Display Modes

Re: rotatelogs: log name is one day off
  #11 (permalink)  
Old 02-24-2010, 09:02 PM
HansH
 
Posts: n/a
Default 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;




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: rotatelogs: log name is one day off
  #12 (permalink)  
Old 02-25-2010, 06:03 PM
i5mast
 
Posts: n/a
Default Re: rotatelogs: log name is one day off

On Feb 24, 5:02*pm, "HansH" <ha...@invalid.invalid> wrote:
> >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;


# TZ=CET date && TZ=right/CET date
Thu Feb 25 20:03:35 CET 2010
Thu Feb 25 20:03:11 CET 2010

Yes, that was the issue. Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:06 AM.


Powered by vBulletin® Version 3.5.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
| Home | FAQ | Members List | Calendar | Today's Posts | Search | New Posts |