diff options
author | JP Rosevear <jpr@ximian.com> | 2001-09-13 00:19:48 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-09-13 00:19:48 +0800 |
commit | 0ce61e5586e7d4a0b84a1626bd84183d4f25a835 (patch) | |
tree | 23e6990e4c389dcd39b5c1afe0473dd6afdbfaf6 /calendar/gui/calendar-commands.c | |
parent | c9b905d16057138e7895bfc08eea7de3c291c1ce (diff) | |
download | gsoc2013-evolution-0ce61e5586e7d4a0b84a1626bd84183d4f25a835.tar gsoc2013-evolution-0ce61e5586e7d4a0b84a1626bd84183d4f25a835.tar.gz gsoc2013-evolution-0ce61e5586e7d4a0b84a1626bd84183d4f25a835.tar.bz2 gsoc2013-evolution-0ce61e5586e7d4a0b84a1626bd84183d4f25a835.tar.lz gsoc2013-evolution-0ce61e5586e7d4a0b84a1626bd84183d4f25a835.tar.xz gsoc2013-evolution-0ce61e5586e7d4a0b84a1626bd84183d4f25a835.tar.zst gsoc2013-evolution-0ce61e5586e7d4a0b84a1626bd84183d4f25a835.zip |
send 6 weeks of free busy info starting with the UTC start of day
2001-09-12 JP Rosevear <jpr@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 10 |
1 files changed, 7 insertions, 3 deletions
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); |