]> Pileus Git - aweather/blobdiff - src/plugins/level2.c
Fix off-by-one on date
[aweather] / src / plugins / level2.c
index 623fa34c0783db84a86a61520d20829a53edd47d..654465d935b14a1e7af8589f7a9a6f51e38e7e90 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -420,7 +420,7 @@ GtkWidget *aweather_level2_get_config(AWeatherLevel2 *level2)
 
        /* Add date */
        gchar *date_str = g_strdup_printf("<b><i>%04d-%02d-%02d %02d:%02d</i></b>",
-                       radar->h.year, radar->h.month, radar->h.day,
+                       radar->h.year, radar->h.month, radar->h.day+1,
                        radar->h.hour, radar->h.minute);
        GtkWidget *date_label = gtk_label_new(date_str);
        gtk_label_set_use_markup(GTK_LABEL(date_label), TRUE);