aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/cal-util/timeutil.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index cb6e39a197..b67045e80c 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-24 <jpr@ximian.com>
+
+ * cal-util/timeutil.c (time_day_of_year): add a day for the leap
+ year only if we are currently counting Feb., not if the month
+ passed in is Feb. Fixes #23446.
+
2002-07-23 <jpr@ximian.com>
* gui/e-day-view.c (e_day_view_realize): use proper meeting icon
diff --git a/calendar/cal-util/timeutil.c b/calendar/cal-util/timeutil.c
index f909022565..75e04611a3 100644
--- a/calendar/cal-util/timeutil.c
+++ b/calendar/cal-util/timeutil.c
@@ -365,7 +365,7 @@ time_day_of_year (int day, int month, int year)
for (i = 0; i < month; i++) {
day += days_in_month[i];
- if (month == 1 && time_is_leap_year (year))
+ if (i == 1 && time_is_leap_year (year))
day++;
}