From 05b1caf8faa69541f07453a64f4d489433d00a57 Mon Sep 17 00:00:00 2001 From: program-- Date: Wed, 3 Jul 2024 13:11:19 -0700 Subject: [PATCH] fix: use time_end_, not time_begin_ --- include/forcing/ForcingsEngineDataProvider.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/forcing/ForcingsEngineDataProvider.hpp b/include/forcing/ForcingsEngineDataProvider.hpp index b01a7f4de5..e1cc5ec64c 100644 --- a/include/forcing/ForcingsEngineDataProvider.hpp +++ b/include/forcing/ForcingsEngineDataProvider.hpp @@ -116,7 +116,7 @@ struct ForcingsEngineDataProvider long get_data_stop_time() override { - return std::chrono::duration_cast(time_begin_.time_since_epoch()).count(); + return std::chrono::duration_cast(time_end_.time_since_epoch()).count(); } long record_duration() override