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 /calendar/cal-util/timeutil.c | |
parent | 9fcbc8f335c4322c6e4167e0356bfb9802e5edb6 (diff) | |
download | gsoc2013-evolution-733c6c604540110c91c554b627e90d5782d316af.tar.gz 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
Diffstat (limited to 'calendar/cal-util/timeutil.c')
-rw-r--r-- | calendar/cal-util/timeutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |