diff options
author | JP Rosevear <jpr@ximian.com> | 2003-11-20 00:17:37 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-11-20 00:17:37 +0800 |
commit | 1786ff2e091087b0b60b4d94ce8e165f6891fdc1 (patch) | |
tree | 3f401bb37ca9f2e7e0bb1c5b97fa2bd1b08dab1a /calendar/gui/e-cal-model-tasks.c | |
parent | 9b6a235208a55d52a3beef416100b4498f0e174e (diff) | |
download | gsoc2013-evolution-1786ff2e091087b0b60b4d94ce8e165f6891fdc1.tar.gz 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-tasks.c')
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index da59bd8d09..2251ec7f88 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -220,11 +220,11 @@ get_completed (ECalModelComponent *comp_data) comp_data->completed = g_new0 (ECellDateEditValue, 1); comp_data->completed->tt = tt_completed; - /* FIXME: handle errors */ - e_cal_get_timezone (comp_data->client, - icaltime_get_tzid (tt_completed), - &zone, NULL); - comp_data->completed->zone = zone; + if (icaltime_get_tzid (tt_completed) + && e_cal_get_timezone (comp_data->client, icaltime_get_tzid (tt_completed), &zone, NULL)) + comp_data->completed->zone = zone; + else + comp_data->completed->zone = NULL; } return comp_data->completed; @@ -250,11 +250,11 @@ get_due (ECalModelComponent *comp_data) comp_data->due = g_new0 (ECellDateEditValue, 1); comp_data->due->tt = tt_due; - /* FIXME: handle errors */ - e_cal_get_timezone (comp_data->client, - icaltime_get_tzid (tt_due), - &zone, NULL); - comp_data->due->zone = zone; + if (icaltime_get_tzid (tt_due) + && e_cal_get_timezone (comp_data->client, icaltime_get_tzid (tt_due), &zone, NULL)) + comp_data->due->zone = zone; + else + comp_data->due->zone = NULL; } return comp_data->due; |