elm calendar - fix gmtime call to use an actual value

e85c92662b added this bug. before it was
always set to 259200 (first sunday after epoch).

found by PVS studio
This commit is contained in:
Carsten Haitzler 2017-07-31 10:00:00 +09:00
parent 2c1e2db876
commit ae79052376
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ _set_headers(Evas_Object *obj)
static char part[] = "ch_0.text";
int i;
struct tm *t;
time_t temp;
time_t temp = 259200; // the first sunday since epoch
ELM_CALENDAR_DATA_GET(obj, sd);
elm_layout_freeze(obj);