[TimeAPI] Fix independent time context check (#6308)

* Fix independent time context to check first object in path (self) for upstream content instead of last object in path

* Revert changes that don't allow unregistering independent time context

---------

Co-authored-by: Shefali <simplyrender@gmail.com>
This commit is contained in:
Khalid Adil
2023-02-09 17:34:17 -06:00
committed by GitHub
parent 302dbe7359
commit 7dcccee1ae
3 changed files with 33 additions and 10 deletions

View File

@ -227,6 +227,10 @@ export default {
if (this.isFixed) {
offsets = this.timeOptions.fixedOffsets;
} else {
if (this.timeOptions.clockOffsets === undefined) {
this.timeOptions.clockOffsets = this.openmct.time.clockOffsets();
}
offsets = this.timeOptions.clockOffsets;
}