• Main INDEX
  • Monthly INDEX
  • PREV
  • NEXT
    Make New Entry, Make Followup Entry

    User name brads

    Log entry time 00:45:53 on March 09, 2009

    Entry number 265393

    Followups:

    keyword=Sunday's Halog entries will return at 1am...

    The bug in halogscript is here:
    #===========================================================
    $oneDay = 24 * 60 * 60;   # 24 hours * 60 minutes/hour * 60
    $oldday = "none";  # we haven't had a day yet
    
    for( $day = 0; $day < 7; $day++ )
    {
    #===========================================================
    #   figure out the month and day that we are looking at this
    #   the loop
    # VDB:: are we geting the right date/time at 1am??
    #===========================================================
        ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $i
             localtime( time() - ( $oneDay * $day ) );
     . . . 
    }
    
    This code loops through the last 7 days by subtracting 24 * 60 * 60 seconds off of 'time'. But yesterday only had 23 hours in it... Minor glitch...

    Check the 'Month' index if you want to look at an entry before the problem goes away at 1am.

    A copy of this log entry has been emailed to: rom@jlab.org, saw@jlab.org