Commit cc496a9d authored by Romain Bignon's avatar Romain Bignon

fix problem of summer time

parent 3855d8d4
......@@ -24,7 +24,7 @@ static time_t reset_day(time_t ts)
localtime_r(&ts, &lt);
lt.tm_sec = 0;
lt.tm_min = 0;
lt.tm_hour = 0;
lt.tm_hour = 1;
return mktime(&lt);
}
......@@ -72,7 +72,6 @@ int create_image(struct data* data, const char *filename, struct event* events,
for (i = 0; i < days; ++i)
{
struct tm lt;
/* TODO Does not work two times in a year because of summer time. */
time_t day_ts = first + (i*24*3600);
localtime_r(&day_ts, &lt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment