]> Pileus Git - aweather/commitdiff
Properly set DST flag when using mktime v0.4.1
authorAndy Spencer <andy753421@gmail.com>
Tue, 18 May 2010 05:43:48 +0000 (22:43 -0700)
committerAndy Spencer <andy753421@gmail.com>
Tue, 18 May 2010 05:43:48 +0000 (22:43 -0700)
src/aweather-gui.c

index 59dbfaab6b9cb6aaa0c11c939d67c6a8d7e95662..c0cbf0d12a2d133e84b6ea66dee6b2c774b86b3c 100644 (file)
@@ -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,