This commit is contained in:
iceman1001 2019-04-13 02:51:33 +02:00
parent 0a8c303685
commit 22f8440183

View file

@ -1205,10 +1205,10 @@ static int CmdT55xxReadTrace(const char *Cmd) {
si += 5;
data.dw = PackBits(si, 15, DemodBuffer);
struct tm *t = NULL;
struct tm *tm = NULL;
time_t now = time(NULL);
localtime_r(&now, t);
if (data.year > t.tm_year - 110)
localtime_r(&now, tm);
if (data.year > tm->tm_year - 110)
data.year += 2000;
else
data.year += 2010;