@@ -31,8 +31,8 @@ MPI_TEST_CASE("TestXiosCalendar", 1)
3131{
3232 std::stringstream config;
3333 config << " [model]" << std::endl;
34- config << " start = 2023-03-17T17:11 :00Z" << std::endl;
35- config << " stop = 2023-03-17T18:11 :00Z" << std::endl;
34+ config << " start = 2023-03-17T00:00 :00Z" << std::endl;
35+ config << " stop = 2023-03-17T00:00 :00Z" << std::endl;
3636 config << " time_step = P0-0T01:00:00" << std::endl;
3737 config << " partition_file = xios_test_partition_metadata_1.nc" << std::endl;
3838 std::unique_ptr<std::istream> pcstream (new std::stringstream (config.str ()));
@@ -53,11 +53,11 @@ MPI_TEST_CASE("TestXiosCalendar", 1)
5353
5454 // --- Tests for calendar API
5555 // Calendar start
56- REQUIRE (xiosHandler.getCalendarStart ().format () == " 2023-03-17T17:11 :00Z" ); // Set in config
57- TimePoint start (" 2023-03-17T20:11 :00Z" );
56+ REQUIRE (xiosHandler.getCalendarStart ().format () == " 2023-03-17T00:00 :00Z" ); // Set in config
57+ TimePoint start (" 2023-03-18T00:00 :00Z" );
5858 xiosHandler.setCalendarStart (start);
5959 REQUIRE (start == xiosHandler.getCalendarStart ());
60- REQUIRE (start.format () == " 2023-03-17T20:11 :00Z" );
60+ REQUIRE (start.format () == " 2023-03-18T00:00 :00Z" );
6161 // Timestep
6262 ModelMetadata& metadata = ModelMetadata::getInstance ();
6363 REQUIRE (metadata.stepLength ().seconds () == 3600.0 ); // Read from config
@@ -67,12 +67,12 @@ MPI_TEST_CASE("TestXiosCalendar", 1)
6767
6868 // --- Tests for getCurrentDate method
6969 REQUIRE (xiosHandler.getCalendarStep () == 0 );
70- REQUIRE (xiosHandler.getCurrentDate ().format () == " 2023-03-17T20:11 :00Z" );
70+ REQUIRE (xiosHandler.getCurrentDate ().format () == " 2023-03-18T00:00 :00Z" );
7171
7272 // -- Tests that the timestep is set up correctly
7373 xiosHandler.setCalendarStep (1 );
7474 REQUIRE (xiosHandler.getCalendarStep () == 1 );
75- REQUIRE (xiosHandler.getCurrentDate ().format () == " 2023-03-17T21:11 :00Z" );
75+ REQUIRE (xiosHandler.getCurrentDate ().format () == " 2023-03-18T01:00 :00Z" );
7676
7777 xiosHandler.context_finalize ();
7878 Finalizer::finalize ();
0 commit comments