From a3d21e9d880ea89e264e96fa8987bc3be7e388cd Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 17 Aug 2004 13:35:28 +0000 Subject: Fixes #62706 2004-08-16 JP Rosevear Fixes #62706 * gui/e-cal-model.c (e_cal_model_set_timezone): set the default timezone on the server svn path=/trunk/; revision=26955 --- calendar/gui/e-cal-model.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index c39db7dd66..59530dfee7 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1090,7 +1090,8 @@ void e_cal_model_set_timezone (ECalModel *model, icaltimezone *zone) { ECalModelPrivate *priv; - + GList *l; + g_return_if_fail (E_IS_CAL_MODEL (model)); priv = model->priv; @@ -1098,6 +1099,9 @@ e_cal_model_set_timezone (ECalModel *model, icaltimezone *zone) e_table_model_pre_change (E_TABLE_MODEL (model)); priv->zone = zone; + for (l = priv->clients; l; l = l->next) + e_cal_set_default_timezone (((ECalModelClient *)l->data)->client, priv->zone, NULL); + /* the timezone affects the times shown for date fields, so we need to redisplay everything */ e_table_model_changed (E_TABLE_MODEL (model)); -- cgit v1.2.3