aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-11-20 00:17:37 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-11-20 00:17:37 +0800
commit1786ff2e091087b0b60b4d94ce8e165f6891fdc1 (patch)
tree3f401bb37ca9f2e7e0bb1c5b97fa2bd1b08dab1a /calendar/gui/e-cal-model.c
parent9b6a235208a55d52a3beef416100b4498f0e174e (diff)
downloadgsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.tar
gsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.tar.gz
gsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.tar.bz2
gsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.tar.lz
gsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.tar.xz
gsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.tar.zst
gsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.zip
make sure timezone value is sane (get_completed): ditto
2003-11-19 JP Rosevear <jpr@ximian.com> * gui/e-cal-model-tasks.c (get_due): make sure timezone value is sane (get_completed): ditto * gui/e-cal-model.c (get_dtstart): add more guards * gui/e-cal-model-calendar.c (get_dtend): ditto svn path=/trunk/; revision=23442
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r--calendar/gui/e-cal-model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 0073a7cac8..9ac1104380 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -352,8 +352,8 @@ get_dtstart (ECalModel *model, ECalModelComponent *comp_data)
comp_data->dtstart = g_new0 (ECellDateEditValue, 1);
comp_data->dtstart->tt = tt_start;
- if (e_cal_get_timezone (comp_data->client, icaltime_get_tzid (tt_start),
- &zone, NULL))
+ if (icaltime_get_tzid (tt_start)
+ && e_cal_get_timezone (comp_data->client, icaltime_get_tzid (tt_start), &zone, NULL))
comp_data->dtstart->zone = zone;
else
comp_data->dtstart->zone = NULL;