diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/sbinfo/sbinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/sbinfo/sbinfo.c b/utils/sbinfo/sbinfo.c index f09bb79fe9..632c4b3eb9 100644 --- a/utils/sbinfo/sbinfo.c +++ b/utils/sbinfo/sbinfo.c | |||
@@ -386,7 +386,8 @@ static void extract(unsigned long filesize) | |||
386 | 386 | ||
387 | uint64_t micros = sb_header->timestamp; | 387 | uint64_t micros = sb_header->timestamp; |
388 | time_t seconds = (micros / (uint64_t)1000000L); | 388 | time_t seconds = (micros / (uint64_t)1000000L); |
389 | seconds += 946684800; /* 2000/1/1 0:00:00 */ | 389 | struct tm tm_base = {0, 0, 0, 1, 0, 100, 0, 0, 1, 0, NULL}; /* 2000/1/1 0:00:00 */ |
390 | seconds += mktime(&tm_base); | ||
390 | struct tm *time = gmtime(&seconds); | 391 | struct tm *time = gmtime(&seconds); |
391 | color(GREEN); | 392 | color(GREEN); |
392 | printf(" Creation date/time = "); | 393 | printf(" Creation date/time = "); |