jovandeginste / workout-tracker

A workout tracking web application for personal use (or family, friends), geared towards running and other GPX-based activities
Other
945 stars 31 forks source link

Time discrepancy #75

Closed wills106 closed 5 months ago

wills106 commented 5 months ago

I have noticed a time discrepancy between the Workouts Sumary page and the timeline on the individual Workout page.

The "an hour ago" is correct. But the displayed time should be 16:18

image

Detailed Workout page image

Timeline is correct image

Just for info the Walk started 16:18 and current time as posting is 17:58

wills106 commented 5 months ago

The GPX does state 15:18, but I have selected London as time zone. So it looks like the Timeline is using DST (GMT +1) but the other locations is just using GMT.

jovandeginste commented 5 months ago

Is it possible the timezone in your browser/on your system is not the same as the one you configured inside the web ui? The stats at the bottom are rendered in javascript, which uses the browser's timezone, while the ones in the summary and details are rendered server-side. I want to remove the dependency on javascript for this, however, but that's not ready yet.

wills106 commented 5 months ago

Does this help?

image

image

jovandeginste commented 5 months ago

You can check here: https://webbrowsertools.com/timezone/

wills106 commented 5 months ago

I used that for the second screenshot in the previous post.

jovandeginste commented 5 months ago

I used that for the second screenshot in the previous post.

:facepalm: sorry :)

jovandeginste commented 5 months ago

Anyway, it explains the discrepancy in times shown: the timeline uses the browser time, because it's client side...

jovandeginste commented 5 months ago

I have tried a number of solutions so far, without luck. I'm wondering if I should drop chartjs for a different library...