From 042a9b34ab740b29b2fc544991954f36630ba94e Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 9 Mar 2016 12:22:06 -0300 Subject: [PATCH] month-view: emit dates in local timezone --- src/gcal-month-view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 8bb8fd10..7e185f86 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -276,11 +276,11 @@ show_popover_for_position (GcalMonthView *view, start_day = aux; } - start_dt = g_date_time_new_utc (priv->date->year, priv->date->month, start_day, 0, 0, 0); + start_dt = g_date_time_new_local (priv->date->year, priv->date->month, start_day, 0, 0, 0); /* Only setup an end date when days are different */ if (start_day != end_day) - end_dt = g_date_time_new_utc (priv->date->year, priv->date->month, end_day + 1, 0, 0, 0); + end_dt = g_date_time_new_local (priv->date->year, priv->date->month, end_day + 1, 0, 0, 0); g_signal_emit_by_name (GCAL_VIEW (widget), "create-event", start_dt, end_dt, x, y); @@ -757,7 +757,7 @@ add_new_event_button_cb (GtkWidget *button, gtk_widget_hide (priv->overflow_popover); day = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (priv->overflow_popover), "selected-day")); - start_date = g_date_time_new_utc (priv->date->year, priv->date->month, day, 0, 0, 0); + start_date = g_date_time_new_local (priv->date->year, priv->date->month, day, 0, 0, 0); g_signal_emit_by_name (GCAL_VIEW (user_data), "create-event-detailed", start_date, NULL);