From 53d2644225727381087bccd7a738bc3193b981b0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 6 Aug 2013 11:00:04 +0000 Subject: timestamp fix git-svn-id: http://svn.miranda-ng.org/main/trunk@5601 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Utils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/NewsAggregator') diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index f1ae9dcec7..336d67993d 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -267,6 +267,8 @@ time_t __stdcall DateToUnixTime(TCHAR *stamp, BOOL FeedType) month = 11; if (!lstrcmpi(monthstr, _T("Dec"))) month = 12; + if (year < 2000) + year += 2000; if (!lstrcmp(timezonesign, _T("+"))) mir_sntprintf(p, 4 + 2 + 2 + 1 + 2 + 1 + 2 + 1 + 2 + 1, _T("%04d%02d%02dT%02d:%02d:%02d"), year, month, day, hour-timezoneh, min-timezonem, sec); else if (!lstrcmp(timezonesign, _T("-"))) -- cgit v1.2.3