diff options
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 6 | ||||
-rw-r--r-- | calendar/gui/dialogs/recurrence-page.c | 7 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-details-page.c | 4 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 6 |
4 files changed, 6 insertions, 17 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 5d0249bbd0..367412cbab 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -498,14 +498,12 @@ event_page_fill_component (CompEditorPage *page, CalComponent *comp) /* Dates */ + icaltime = icaltime_null_time (); + date.value = &icaltime; date.tzid = NULL; - icaltime.is_utc = 0; /* FIXME: We should use is_date at some point. */ - icaltime.is_date = 0; - icaltime.is_daylight = 0; - icaltime.second = 0; date_set = e_date_edit_get_date (E_DATE_EDIT (priv->start_time), &icaltime.year, diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index 54cd1e25c3..4938877133 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -614,7 +614,6 @@ simple_recur_to_comp (RecurrencePage *rpage, CalComponent *comp) GSList l; enum ending_type ending_type; gboolean date_set; - struct icaltimetype icaltime = icaltime_null_time (); priv = rpage->priv; @@ -756,12 +755,6 @@ simple_recur_to_comp (RecurrencePage *rpage, CalComponent *comp) g_assert (priv->ending_date_edit != NULL); g_assert (E_IS_DATE_EDIT (priv->ending_date_edit)); - /* UNTIL must be in UTC, unless it is a date. So we probably - want to convert it to local time when showing. */ - icaltime.is_utc = 0; - icaltime.is_date = 1; - icaltime.is_daylight = 0; - date_set = e_date_edit_get_date (E_DATE_EDIT (priv->ending_date_edit), &r.until.year, &r.until.month, diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 52a1fe2706..1af190a201 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -301,10 +301,10 @@ task_details_page_fill_component (CompEditorPage *page, CalComponent *comp) tdpage = TASK_DETAILS_PAGE (page); priv = tdpage->priv; + icaltime = icaltime_null_time (); + /* COMPLETED must be in UTC. */ icaltime.is_utc = 1; - icaltime.is_date = 0; - icaltime.is_daylight = 0; /* Completed Date. */ date_set = e_date_edit_get_date (E_DATE_EDIT (priv->completed_date), diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 6127087b3b..2ba37b7c6a 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -554,14 +554,12 @@ task_page_fill_component (CompEditorPage *page, CalComponent *comp) /* Dates */ + icaltime = icaltime_null_time (); + date.value = &icaltime; date.tzid = NULL; - icaltime.is_utc = 0; /* FIXME: We should use is_date at some point. */ - icaltime.is_date = 0; - icaltime.is_daylight = 0; - icaltime.second = 0; /* Due Date. */ date_set = e_date_edit_get_date (E_DATE_EDIT (priv->due_date), |