mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
struct
This commit is contained in:
parent
0a8c303685
commit
22f8440183
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue