#1966 : Use DATE if DATE is the only column present

This commit is contained in:
Magne Sjaastad
2017-10-05 10:11:10 +02:00
parent 56cd53a5f0
commit cc59b85ee9
5 changed files with 101 additions and 36 deletions

View File

@@ -466,12 +466,14 @@ std::vector<std::string> RifEclipseUserDataParserTools::headerReader(std::string
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifEclipseUserDataParserTools::hasTimeUnit(const std::string& line)
bool RifEclipseUserDataParserTools::hasTimeUnit(const std::string& word)
{
if (line == "DAYS" ||
line == "DAY" ||
line == "YEARS" ||
line == "YEAR")
if (word == "DAYS" ||
word == "DAY" ||
word == "YEARS" ||
word == "YEAR" ||
word == "DATE" ||
word == "DATES")
{
return true;
}