diff --git a/frontend/app/components/Session_/Player/Controls/Timeline.tsx b/frontend/app/components/Session_/Player/Controls/Timeline.tsx index 5a47b1df2..89ce80e65 100644 --- a/frontend/app/components/Session_/Player/Controls/Timeline.tsx +++ b/frontend/app/components/Session_/Player/Controls/Timeline.tsx @@ -100,10 +100,11 @@ function Timeline(props) { }; } else { const time = getTime(e); + const tz = settingsStore.sessionSettings.timezone.value + const timeStr = DateTime.fromMillis(props.startedAt + time).setZone(tz).toFormat(`hh:mm:ss a`) timeLineTooltip = { - time: !settingsStore.isUniTs - ? Duration.fromMillis(time).toFormat(`mm:ss`) - : DateTime.fromMillis(props.startedAt + time).toFormat(`hh:mm:ss a`), + time: Duration.fromMillis(time).toFormat(`mm:ss`), + timeStr, offset: e.nativeEvent.offsetX, isVisible: true, }; diff --git a/frontend/app/components/Session_/Player/Controls/components/TimeTooltip.tsx b/frontend/app/components/Session_/Player/Controls/components/TimeTooltip.tsx index 5c4d19c0d..e47593b97 100644 --- a/frontend/app/components/Session_/Player/Controls/components/TimeTooltip.tsx +++ b/frontend/app/components/Session_/Player/Controls/components/TimeTooltip.tsx @@ -8,30 +8,39 @@ interface Props { time: number; offset: number; isVisible: boolean; + timeStr: string; } function TimeTooltip({ time, offset, isVisible, + timeStr, }: Props) { return (