summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-31 10:00:00 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-31 10:00:00 +0900
commitae79052376c516fbd836cea08a2187cf26049aea (patch)
treec231dc8610e36f22c83ee220b3bce44f61ab209a
parent2c1e2db8769b6f5d31a7f46dc227cf1569937c23 (diff)
elm calendar - fix gmtime call to use an actual value
e85c92662bfec6a88bb7d2d091682daa429acba0 added this bug. before it was always set to 259200 (first sunday after epoch). found by PVS studio
-rw-r--r--src/lib/elementary/elm_calendar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_calendar.c b/src/lib/elementary/elm_calendar.c
index 7427084b00..ed80c45341 100644
--- a/src/lib/elementary/elm_calendar.c
+++ b/src/lib/elementary/elm_calendar.c
@@ -710,7 +710,7 @@ _set_headers(Evas_Object *obj)
710 static char part[] = "ch_0.text"; 710 static char part[] = "ch_0.text";
711 int i; 711 int i;
712 struct tm *t; 712 struct tm *t;
713 time_t temp; 713 time_t temp = 259200; // the first sunday since epoch
714 ELM_CALENDAR_DATA_GET(obj, sd); 714 ELM_CALENDAR_DATA_GET(obj, sd);
715 715
716 elm_layout_freeze(obj); 716 elm_layout_freeze(obj);