diff options
author | 4 <jpr@ximian.com> | 2002-07-25 01:06:55 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-07-25 01:06:55 +0800 |
commit | 733c6c604540110c91c554b627e90d5782d316af (patch) | |
tree | 8e5e3adab10ffc84d45bf68065f3e3b4859c8c17 | |
parent | 9fcbc8f335c4322c6e4167e0356bfb9802e5edb6 (diff) | |
download | gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.tar gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.tar.gz gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.tar.bz2 gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.tar.lz gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.tar.xz gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.tar.zst gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.zip |
add a day for the leap year only if we are currently counting Feb., not if
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.
svn path=/trunk/; revision=17571
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/cal-util/timeutil.c | 2 |
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++; } |