aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-02-06 11:03:46 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-02-06 11:03:46 +0800
commit9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd (patch)
treeea90ec6bdbaa2642c2112096c01cc892c08cd006 /calendar/gui/e-tasks.c
parentf50cbd6b5ec4ab3616e693e83ececd617f559521 (diff)
downloadgsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar.gz
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.tar.zst
gsoc2013-evolution-9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd.zip
Convert the calendar_config_get_timezone and
2004-02-05 JP Rosevear <jpr@ximian.com> * Convert the calendar_config_get_timezone and icaltimezone_get_builtin_timezone pair to just calendar_config_get_icaltimezone, this also guarantees we will have some timezone (even if its just UTC) svn path=/trunk/; revision=24642
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index bd4162c617..7376e72cb3 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -131,11 +131,7 @@ write_html (GtkHTMLStream *stream, ECalComponent *comp)
g_return_if_fail (E_IS_CAL_COMPONENT (comp));
- str = calendar_config_get_timezone ();
- if (str && str[0]) {
- current_zone = icaltimezone_get_builtin_timezone (str);
- } else
- current_zone = icaltimezone_get_utc_timezone ();
+ current_zone = calendar_config_get_icaltimezone ();
/* write document header */
e_cal_component_get_summary (comp, &text);
@@ -439,19 +435,12 @@ static void
set_timezone (ETasks *tasks)
{
ETasksPrivate *priv;
- char *location;
icaltimezone *zone;
GList *l;
priv = tasks->priv;
- location = calendar_config_get_timezone ();
- zone = icaltimezone_get_builtin_timezone (location);
- g_free (location);
-
- if (!zone)
- zone = icaltimezone_get_utc_timezone ();
-
+ zone = calendar_config_get_icaltimezone ();
for (l = priv->clients_list; l != NULL; l = l->next) {
ECal *client = l->data;