Fixed non-numeric timezone parsing (thanks to John van der Kamp, Zarafa).

This commit is contained in:
Vincent Richard 2009-01-09 21:07:42 +00:00
parent 2fe5fceb3f
commit c2d2603761

View File

@ -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':
{