diff --git a/opm/simulators/timestepping/SimulatorTimer.cpp b/opm/simulators/timestepping/SimulatorTimer.cpp index e9a4a8ddf..e968a8058 100644 --- a/opm/simulators/timestepping/SimulatorTimer.cpp +++ b/opm/simulators/timestepping/SimulatorTimer.cpp @@ -58,9 +58,7 @@ namespace Opm } setCurrentStepNum(report_step); - - boost::posix_time::ptime start_time = timeMap.getStartTime(0); - start_date_ = start_time.date(); + start_date_ = boost::posix_time::from_time_t( timeMap.getStartTime(0)).date(); } /// Whether the current step is the first step.