mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7403 Replace toTime_t with toSecsSinceEpoch
This commit is contained in:
@@ -117,7 +117,7 @@ bool RifKeywordVectorUserData::parse( const QString& data, const QString& custom
|
||||
for ( const auto& timeStepValue : m_parser->keywordBasedVectors()[i].values )
|
||||
{
|
||||
QDateTime dateTime = RiaQDateTimeTools::addDays( startDate, timeStepValue );
|
||||
ts.push_back( dateTime.toTime_t() );
|
||||
ts.push_back( dateTime.toSecsSinceEpoch() );
|
||||
}
|
||||
}
|
||||
else if ( unitText == "YEAR" || unitText == "YEARS" )
|
||||
@@ -125,7 +125,7 @@ bool RifKeywordVectorUserData::parse( const QString& data, const QString& custom
|
||||
for ( const auto& timeStepValue : m_parser->keywordBasedVectors()[i].values )
|
||||
{
|
||||
QDateTime dateTime = RiaQDateTimeTools::fromYears( timeStepValue );
|
||||
ts.push_back( dateTime.toTime_t() );
|
||||
ts.push_back( dateTime.toSecsSinceEpoch() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user