mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve date parser to work better with some GeoMech time step names
This commit is contained in:
@@ -111,7 +111,7 @@ TEST( RiaDateStringParserTest, ParseWithoutSeparators )
|
||||
may2ndDT.setTimeSpec( RiaQDateTimeTools::currentTimeSpec() );
|
||||
feb5thDT.setTimeSpec( RiaQDateTimeTools::currentTimeSpec() );
|
||||
|
||||
std::vector<std::string> may2ndStrings = {"20110502", "02052011"};
|
||||
std::vector<std::string> may2ndStrings = {"20110502", "02052011", "Date_20110502"};
|
||||
for ( auto may2ndString : may2ndStrings )
|
||||
{
|
||||
QDateTime parsedDate = RiaDateStringParser::parseDateString( may2ndString );
|
||||
|
||||
Reference in New Issue
Block a user