Changed global time to use time context current value for ITC (#7191)

Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov>
Co-authored-by: Jesse Mazzella <ozyx@users.noreply.github.com>
This commit is contained in:
Michael Rogers 2023-11-13 15:42:54 -06:00 committed by GitHub
parent deacd91078
commit 7f8262b882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ export default {
this.formattedBounds.end = this.timeFormatter.format(bounds.end); this.formattedBounds.end = this.timeFormatter.format(bounds.end);
}, },
updateCurrentValue() { updateCurrentValue() {
const currentValue = this.openmct.time.getClock()?.currentValue(); const currentValue = this.timeContext.getClock().currentValue();
if (currentValue !== undefined) { if (currentValue !== undefined) {
this.setCurrentValue(currentValue); this.setCurrentValue(currentValue);