[Calendar][PATCH] CalendarScreenlet shows wrong number of days in month

Bug #243569 reported by ASDFASDF
2
Affects Status Importance Assigned to Milestone
Individual Screenlets
Fix Released
Medium
Unassigned

Bug Description

I noticed today that Calendar screenlet shows that June has 31 days but in fact it has 30 days.
I think the error is in line 157 that goes:

for x in range(date[4] + 1):

and it should go:

for x in range(date[4]):

Revision history for this message
ASDFASDF (user-487-deactivatedaccount) wrote :

There was also error in the code that calculated the number of days in month.
Here is the patch.

Changed in screenlets:
status: New → Confirmed
Papp Bence (sclegnrbs)
affects: screenlets → indiv-screenlets
Changed in indiv-screenlets:
status: Confirmed → Fix Committed
importance: Undecided → Medium
summary: - [PATCH] CalendarScreenlet shows wrong number of days in month
+ [Calendar][PATCH] CalendarScreenlet shows wrong number of days in month
Papp Bence (sclegnrbs)
Changed in indiv-screenlets:
status: Fix Committed → In Progress
Papp Bence (sclegnrbs)
Changed in indiv-screenlets:
status: In Progress → Fix Committed
Märt Põder (boamaod)
Changed in indiv-screenlets:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.