From 52f6b9fe5b32782b47f1611d5a2b51dd58e6e7eb Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Fri, 26 Nov 2021 17:00:21 +0100
Subject: [PATCH] TMSS-671: fixed scheduled_on_sky_start_time ->
 scheduled_start_time

(cherry picked from commit 9788c0a7c7340c0ce23b1169eff00e6c816e94b0)
---
 MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
index f86bd02c2d3..2113bc9d622 100644
--- a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
+++ b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc
@@ -797,7 +797,7 @@ void MACScheduler::_updatePlannedList()
 
 	if (!upcomingSubTasks.empty()) {
 		LOG_DEBUG(formatString("TMSSCheck:First planned observation (%s) is at %s",
-				upcomingSubTasks[0]["url"].asCString(), upcomingSubTasks[0]["scheduled_on_sky_start_time"].asCString()));
+				upcomingSubTasks[0]["url"].asCString(), upcomingSubTasks[0]["scheduled_start_time"].asCString()));
 	}
 
 	// make a copy of the current prepared observations (= observations shown in the navigator in the 'future'
@@ -913,7 +913,7 @@ void MACScheduler::_updatePlannedList()
 
 		// construct name and timings info for observation
 		string obsName(observationName(subtask_id));
-		ptime  start_time = time_from_string(subtask["scheduled_on_sky_start_time"].asString().replace(10, 1, " "));
+		ptime  start_time = time_from_string(subtask["scheduled_start_time"].asString().replace(10, 1, " "));
 		ptime  modTime = time_from_string(subtask["updated_at"].asString().replace(10, 1, " "));
 
 		// remove obs from backup of the planned-list (it is in the list again)
-- 
GitLab