Seems was a paste problem, line 41 started under the "n" of sprint sprintf (th->date, "%04d:%02d:%02d %02d:%02d:%02d", t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec); == Btw, this is a bug, so I would suggest make a PR.