summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 8a2d71990..7b3308869 100644
--- a/planner.c
+++ b/planner.c
@@ -1042,7 +1042,10 @@ static gboolean po2_focus_out_cb(GtkWidget *entry, GdkEvent * event, gpointer da
static timestamp_t current_time_notz(void)
{
timestamp_t now = time(NULL);
- int offset = g_time_zone_get_offset(g_time_zone_new_local(), 1);
+ GTimeZone *tz = g_time_zone_new_local();
+ gint interval = g_time_zone_find_interval(tz, G_TIME_TYPE_UNIVERSAL, now);
+ gint32 offset = g_time_zone_get_offset(tz, interval);
+ g_time_zone_unref(tz);
return now + offset;
}