mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1941 : Obseved Data : Add support for parsing of start date
This commit is contained in:
@@ -29,11 +29,11 @@ quint64 RiaDateTimeTools::secondsFromUnit(const std::string& unit)
|
||||
{
|
||||
QString str = QString::fromStdString(unit).trimmed().toUpper();
|
||||
|
||||
if (str == "DAYS")
|
||||
if (str == "DAYS" || str == "DAY")
|
||||
{
|
||||
return RiaDateTimeTools::secondsInDay();
|
||||
}
|
||||
else if (str == "YEARS")
|
||||
else if (str == "YEARS" || str == "YEAR")
|
||||
{
|
||||
return RiaDateTimeTools::secondsInYear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user