diff options
| author | Vincent Richard <[email protected]> | 2009-01-09 22:07:42 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2009-01-09 22:07:42 +0100 |
| commit | c2d2603761c85924bc9d99aa002661c111226a28 (patch) | |
| tree | a42626df73329ad72fe4c8ca591f254bd6a6fc7b /src | |
| parent | Fixed week of year for 53th week (non ISO-compliant). (diff) | |
| download | vmime-c2d2603761c85924bc9d99aa002661c111226a28.tar.gz vmime-c2d2603761c85924bc9d99aa002661c111226a28.zip | |
Fixed non-numeric timezone parsing (thanks to John van der Kamp, Zarafa).
Diffstat (limited to 'src')
| -rw-r--r-- | src/dateTime.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dateTime.cpp b/src/dateTime.cpp index 3af6da77..66cd992b 100644 --- a/src/dateTime.cpp +++ b/src/dateTime.cpp @@ -427,7 +427,7 @@ void datetime::parse(const string& buffer, const string::size_type position, zone[zoneLength++] = *p; ++p; } - while (zoneLength < 3 && p < pend && parserHelpers::isDigit(*p)); + while (zoneLength < 3 && p < pend); switch (zone[0]) { @@ -491,6 +491,8 @@ void datetime::parse(const string& buffer, const string::size_type position, break; } + case 'g': + case 'G': case 'u': case 'U': { |
