Ticket #1736 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Next month links crash on the last days of some month

Reported by: ogrisel Assigned to: lregebro
Priority: P2 Milestone: unspecified
Component: CalZope Version: TRUNK
Severity: normal Keywords:
Cc:

Description

Steps to reproduce:

  • go to some calendar on the month tab
  • use the top left day widget and select the 31th of august for instance
  • click on the next month tab (marked ">>"):
  File "/home/ogrisel/instances/epm/Products/CalZope/browser/navigation.py", line 110, in __init__
    new_date = self.calcDate()
  File "/home/ogrisel/instances/epm/Products/CalZope/browser/navigation.py", line 199, in calcDate
    return date(self.context.getYear(), self.context.getMonth(), self.day)
ValueError: day is out of range for month

Where self.day is 31 which does not exists in september.

Change History

11/22/06 15:21:52 changed by lregebro

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [50211], (2.9.2)