mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RifEclipseOutputFileTools. Let DateTime tools class create DateTime object with correct time spec
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "RifEclipseRestartFilesetAccess.h"
|
#include "RifEclipseRestartFilesetAccess.h"
|
||||||
#include "RifEclipseUnifiedRestartFileAccess.h"
|
#include "RifEclipseUnifiedRestartFileAccess.h"
|
||||||
|
#include "RiaQDateTimeTools.h"
|
||||||
|
|
||||||
#include "ert/ecl/ecl_file.h"
|
#include "ert/ecl/ecl_file.h"
|
||||||
#include "ert/ecl/ecl_grid.h"
|
#include "ert/ecl/ecl_grid.h"
|
||||||
@@ -159,7 +160,7 @@ void RifEclipseOutputFileTools::timeSteps(ecl_file_type* ecl_file, std::vector<Q
|
|||||||
int year = 0;
|
int year = 0;
|
||||||
getDayMonthYear(kwINTEHEAD, &day, &month, &year);
|
getDayMonthYear(kwINTEHEAD, &day, &month, &year);
|
||||||
|
|
||||||
QDateTime reportDateTime(QDate(year, month, day));
|
QDateTime reportDateTime = RiaQDateTimeTools::createDateTime(QDate(year, month, day));
|
||||||
CVF_ASSERT(reportDateTime.isValid());
|
CVF_ASSERT(reportDateTime.isValid());
|
||||||
|
|
||||||
double dayValue = dayValues[i];
|
double dayValue = dayValues[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user