diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-07 20:20:44 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-07 20:20:44 +0000 |
commit | 873053bb99ee832c06803b81168dcacc758fe8de (patch) | |
tree | 3b355fb57adc99adda65c508529c1f95665db205 /plugins/NewsAggregator | |
parent | 460523e2f91671ef33c896966df7c30939e5cc41 (diff) |
NewsAggregator: fix for timestamp
git-svn-id: http://svn.miranda-ng.org/main/trunk@11265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r-- | plugins/NewsAggregator/Src/Utils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index 7788ed4a18..b8d9f56375 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -206,10 +206,12 @@ time_t __stdcall DateToUnixTime(const TCHAR *stamp, bool FeedType) }
}
else {
- TCHAR weekday[4], monthstr[4], timezonesign[2];
+ TCHAR *weekday, monthstr[4], timezonesign[2];
int day, month, year, hour, min, sec, timezoneh, timezonem;
if (_tcsstr(p, _T(","))) {
- _stscanf(p, _T("%3s, %d %3s %d %d:%d:%d %1s%02d%02d"), &weekday, &day, &monthstr, &year, &hour, &min, &sec, &timezonesign, &timezoneh, &timezonem);
+ weekday = _tcstok(p, _T(","));
+ p = _tcstok(NULL, _T(","));
+ _stscanf(p + 1, _T("%d %3s %d %d:%d:%d %1s%02d%02d"), &day, &monthstr, &year, &hour, &min, &sec, &timezonesign, &timezoneh, &timezonem);
if (!mir_tstrcmpi(monthstr, _T("Jan")))
month = 1;
if (!mir_tstrcmpi(monthstr, _T("Feb")))
|