From: Andy Spencer Date: Tue, 18 May 2010 05:43:48 +0000 (-0700) Subject: Properly set DST flag when using mktime X-Git-Tag: v0.4.1^0 X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=710c6499c9bcaa406c51c52ae247dad35d27f0d9 Properly set DST flag when using mktime --- 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,