Skip to content
Snippets Groups Projects
Commit 83a2ae2f authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

safer routine

parent d7bfd982
No related branches found
No related tags found
2 merge requests!1213Resolve TMSS-2717 "Refactor details summary + ui tweaks",!1212Resolve TMSS-2717 "Refactor details summary + ui tweaks"
......@@ -72,11 +72,13 @@ export async function fetchLSTStationShift(utcTime,station) {
stations = [station,UIConstants.TIMINGSERVER]
}
else {
station = UIConstants.TIMINGSERVER;
stations = [UIConstants.TIMINGSERVER]
}
}
let lstresponse = await UtilService.getLST(UTCTimeNow, stations) // we get timing also, makes debugging a lot easier.
if (!lstresponse) return -1;
let lst = lstresponse.data?.LST?.[station];
let UTCAlsoTimeNow = moment.utc(lstresponse.data?.UTC).format(UIConstants.UTC_DATE_TIME_FORMAT);
const shift = GetLstShiftinSeconds(lst, UTCAlsoTimeNow)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment