Use the current clock's timestamp to show the now line in the timestrip (#6082)

This commit is contained in:
Shefali Joshi 2022-12-28 14:18:47 -08:00 committed by GitHub
parent 327fc826c1
commit 9ed9e62202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,8 @@ export default {
if (nowMarker) {
nowMarker.classList.remove('hidden');
nowMarker.style.height = this.contentHeight + 'px';
const now = this.xScale(Date.now());
const nowTimeStamp = this.openmct.time.clock().currentValue();
const now = this.xScale(nowTimeStamp);
nowMarker.style.left = now + this.offset + 'px';
}
}