diff options
author | JP Rosevear <jpr@ximian.com> | 2001-09-21 03:52:58 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-09-21 03:52:58 +0800 |
commit | 4ffc49d7b98f4693991b2cf48d564219217e5307 (patch) | |
tree | 7163e8ff0322c6da940091adce214416215967bf /calendar/gui/calendar-commands.c | |
parent | 55690284e1557f5c85bc8edae36b3cf3817eff9e (diff) | |
download | gsoc2013-evolution-4ffc49d7b98f4693991b2cf48d564219217e5307.tar.gz gsoc2013-evolution-4ffc49d7b98f4693991b2cf48d564219217e5307.tar.zst gsoc2013-evolution-4ffc49d7b98f4693991b2cf48d564219217e5307.zip |
gets a config db (cal_backend_file_destroy): release config db
2001-09-20 JP Rosevear <jpr@ximian.com>
* pcs/cal-backend-file.c (load_db): gets a config db
(cal_backend_file_destroy): release config db
(cal_backend_file_init): use load_db
(mail_account_get): gets a mail account by number
(mail_account_get_default): gets the default mail account
(mail_account_is_valid): looks to see if any accounts have the
given address
(create_user_free_busy): modularize so we can call multiple times
if necessary, set organizer
(cal_backend_file_get_free_busy): if the list of users is null,
use the default account otherwise get the same info for each
address that is an identity in the mailer
* gui/itip-utils.c (itip_addresses_get): s/gint/glong/ for bonobo
conf returns
* gui/calendar-commands.c (publish_freebusy_cmd): fix problems
from a merge so that we publish 6 weeks of free/busy information
again
svn path=/trunk/; revision=13015
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 5de5b0091f..366026dc96 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -333,13 +333,16 @@ publish_freebusy_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) GnomeCalendar *gcal; CalClient *client; GList *comp_list; - 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); - /* FIXME: use the "users" parameter */ comp_list = cal_client_get_free_busy (client, NULL, start, end); if (comp_list) { GList *l; |