NetSSL library refactoring

This commit is contained in:
Guenter Obiltschnig
2009-02-23 20:56:01 +00:00
parent f345a6c6e2
commit 75a07d7983
103 changed files with 9549 additions and 1453 deletions

View File

@@ -1,7 +1,7 @@
//
// DateTimeParser.cpp
//
// $Id: //poco/svn/Foundation/src/DateTimeParser.cpp#3 $
// $Id: //poco/Main/Foundation/src/DateTimeParser.cpp#18 $
//
// Library: Foundation
// Package: DateTime
@@ -103,14 +103,11 @@ void DateTimeParser::parse(const std::string& fmt, const std::string& str, DateT
break;
case 'y':
SKIP_JUNK();
PARSE_NUMBER(year);
if (year < 1000)
{
if (year >= 70)
year += 1900;
else
year += 2000;
}
PARSE_NUMBER_N(year, 2);
if (year >= 70)
year += 1900;
else
year += 2000;
break;
case 'Y':
SKIP_JUNK();