From 1c0131a55f2e51447fb189bc0da119cb3b71d400 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 10 May 2019 11:53:24 -0300 Subject: [PATCH] edit-dialog: Restore time removal of all-day events All day events have no time period. This was a fallout from the previous commit. --- src/gui/gcal-edit-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/gcal-edit-dialog.c b/src/gui/gcal-edit-dialog.c index fd83eaaf..2881bd4e 100644 --- a/src/gui/gcal-edit-dialog.c +++ b/src/gui/gcal-edit-dialog.c @@ -325,8 +325,8 @@ return_datetime_for_widgets (GcalEditDialog *self, g_date_time_get_year (date_in_best_tz), g_date_time_get_month (date_in_best_tz), g_date_time_get_day_of_month (date_in_best_tz), - g_date_time_get_hour (date_in_best_tz), - g_date_time_get_minute (date_in_best_tz), + all_day ? 0 : g_date_time_get_hour (date_in_best_tz), + all_day ? 0 : g_date_time_get_minute (date_in_best_tz), 0); return retval;