From 710c6499c9bcaa406c51c52ae247dad35d27f0d9 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Mon, 17 May 2010 22:43:48 -0700 Subject: [PATCH] Properly set DST flag when using mktime --- src/aweather-gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aweather-gui.c b/src/aweather-gui.c index 59dbfaa..c0cbf0d 100644 --- a/src/aweather-gui.c +++ b/src/aweather-gui.c @@ -135,7 +135,7 @@ G_MODULE_EXPORT void on_plugin_toggled(GtkCellRendererToggle *cell, gchar *path_ G_MODULE_EXPORT void on_time_changed(AWeatherGui *self) { g_debug("AWeatherGui: on_time_changed"); - struct tm tm = {}; + struct tm tm = {.tm_isdst = -1}; GtkWidget *cal = aweather_gui_get_widget(self, "main_date_cal"); gtk_calendar_get_date(GTK_CALENDAR(cal), (guint*)&tm.tm_year, -- 2.43.2