From 883b055530064389ec260784960d5c0686ed1f06 Mon Sep 17 00:00:00 2001 From: Florian Latifi Date: Wed, 6 Feb 2019 02:33:02 +0100 Subject: [PATCH] edit-dialog: don't convert date to timezone if event is all-day --- src/gcal-edit-dialog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 051816fdb..977a6530b 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -316,14 +316,14 @@ return_datetime_for_widgets (GcalEditDialog *self, all_day ? 0 : g_date_time_get_minute (time), 0); - date_in_best_tz = g_date_time_to_timezone (date_in_local_tz, timezone); + date_in_best_tz = (all_day) ? date_in_local_tz : g_date_time_to_timezone (date_in_local_tz, timezone); retval = g_date_time_new (timezone, 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), - all_day ? 0 : g_date_time_get_hour (date_in_best_tz), - all_day ? 0 : g_date_time_get_minute (date_in_best_tz), + g_date_time_get_hour (date_in_best_tz), + g_date_time_get_minute (date_in_best_tz), 0); return retval; -- GitLab