Menu

#41 week.php month boundary repeat error

Major
closed
nobody
MRBS (195)
5
2012-07-20
2002-02-26
Anonymous
No

If you create a repeating event that crosses a month
boundary, it displays properly in the daily and
monthly views, but the weekly view shows it throughout
the first week of the following month.

1) Create an event for 2/26/2002, all day, repeat
daily thru 3/3/2002.
2) View Day of each day looks ok, View Month of
February and March looks ok, View Week of Mar 03 shows
the event through the entire week even though it ends
on 3/3.

Found in Version: mrbs-1.0pre2

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Which PHP are you using?
    I use PHP3 and apache server.
    And MRBS 1.0-pre2.

    I had problems to cast the integer in the week-php-source
    code.

    Output from SCCS diff:
    < $end_t = min(round_t_up($row[1], $resolution),
    $week_end+1);


    > $end_t = min((int)round_t_up((int)$row[1],
    (int)$resolution), (int)$week_end+1);

    Maybe that helps

     
  • Nobody/Anonymous

    Logged In: NO

    That fixes it - thanks!

     
  • Daniel

    Daniel - 2002-05-18

    Logged In: YES
    user_id=29285

    applied to CVS