From 0ce61e5586e7d4a0b84a1626bd84183d4f25a835 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 12 Sep 2001 16:19:48 +0000 Subject: send 6 weeks of free busy info starting with the UTC start of day 2001-09-12 JP Rosevear * gui/calendar-commands.c (publish_freebusy_cmd): send 6 weeks of free busy info starting with the UTC start of day * gui/itip-utils.c (get_label): create a text representation of the given icaltime (itip_send_comp): if the summary is empty, set the subject based on the type of component, put the right extension on free/busy components and base descriptions on type of component, include start/end for free/busy info svn path=/trunk/; revision=12775 --- calendar/gui/calendar-commands.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'calendar/gui/calendar-commands.c') diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 24e21d76f3..efb4b7860c 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -334,10 +334,14 @@ publish_freebusy_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) CalClient *client; CalClientGetStatus status; CalComponent *comp; - time_t start, end; - + icaltimezone *utc; + time_t start = time (NULL), end; + gcal = GNOME_CALENDAR (data); - gnome_calendar_get_current_time_range (gcal, &start, &end); + + utc = icaltimezone_get_utc_timezone (); + start = time_day_begin_with_zone (start, utc); + end = time_add_week_with_zone (start, 6, utc); client = gnome_calendar_get_cal_client (gcal); status = cal_client_get_free_busy (client, start, end, &comp); -- cgit v1.2.3