From 7e35463832751ecfa20a10949eac4188a8c00125 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Wed, 3 Oct 2001 04:34:53 +0000 Subject: save the EXDATE as a DATE-TIME value, since we know the exact time. Fixes 2001-10-03 Damon Chaplin * gui/comp-util.c (cal_comp_util_add_exdate): save the EXDATE as a DATE-TIME value, since we know the exact time. Fixes bug #11278. (Before we were setting is_date, but icaltime_from_timet_with_zone() didn't convert it properly. We need to figure out how to handle DATEs when using time_t's.) * gui/dialogs/recurrence-page.c (get_exception_string): use e_time_format_date_and_time() so we show the time as well, if the exception is a DATE-TIME value. * cal-util/timeutil.c: removed time_add_month(), time_year_begin(), time_month_begin() & time_week_begin() - old pre-timezone functions which we no longer use. * cal-util/cal-recur.c (cal_recur_from_icalproperty): set ir.until.is_date to FALSE before converting to a time_t. Hopefully fixes bug #5034. svn path=/trunk/; revision=13366 --- calendar/cal-util/timeutil.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'calendar/cal-util/timeutil.h') diff --git a/calendar/cal-util/timeutil.h b/calendar/cal-util/timeutil.h index 0e2795b287..1ae0b45f72 100644 --- a/calendar/cal-util/timeutil.h +++ b/calendar/cal-util/timeutil.h @@ -59,15 +59,6 @@ time_t time_from_isodate (const char *str); /* Add or subtract a number of days, weeks or months. */ time_t time_add_day (time_t time, int days); time_t time_add_week (time_t time, int weeks); -time_t time_add_month (time_t time, int months); - -/* Returns the beginning of the year or month. */ -time_t time_year_begin (time_t t); -time_t time_month_begin (time_t t); - -/* Returns the beginning of the week. week_start_day should use the same values - as mktime(), i.e. 0 (Sun) to 6 (Sat). */ -time_t time_week_begin (time_t t, int week_start_day); /* Returns the beginning or end of the day. */ time_t time_day_begin (time_t t); -- cgit v1.2.3