summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/Utils.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-08-06 11:00:04 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-08-06 11:00:04 +0000
commit53d2644225727381087bccd7a738bc3193b981b0 (patch)
tree91af2bb73d09b697ba21e927a5a40de39d3a602c /plugins/NewsAggregator/Src/Utils.cpp
parent85e3d2643e05d6e82026a1c5800b17755628fe4a (diff)
timestamp fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@5601 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Utils.cpp')
-rw-r--r--plugins/NewsAggregator/Src/Utils.cpp2
1 files changed, 2 insertions, 0 deletions
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("-")))