From 84166a4ee77502bdb4a981bc5404a1a970c579cc Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 28 Apr 2016 15:13:30 -0700 Subject: Extend time parsing to before 1970 It turns out that we are starting to have users that have logs that go back that far. It won't be common, but let's get it right anyway. NOTE! With us now supporting dates earlier in 1900, this also makes "utc_mktime()" always add the "1900" to the year field. That way we avoid ever using the fairly ambiguous two-digit shorthand. It didn't use to be all that ambiguous when we knew that any two-digit number less than 70 had to be 2000+. Now that we support going back to earlier in the last centiry, that certainty is eroding. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- core/uemis-downloader.c | 1 - 1 file changed, 1 deletion(-) (limited to 'core/uemis-downloader.c') diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index b9b532303..925783a6d 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -86,7 +86,6 @@ static void uemis_ts(char *buffer, void *_when) &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec); tm.tm_mon -= 1; - tm.tm_year -= 1900; *when = utc_mktime(&tm); } -- cgit v1.2.3-70-g09d2