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

Inconsistencies with time #17

Closed Fudgeey closed 7 months ago

Fudgeey commented 7 months ago

Hello, I have imported a bunch of workouts, but the calendar is displaying the timing of one of them wrong. I assume its basing it off UTC and has meant a workout I did during the day is over two days now.

Here is the calendar showing its over two days: image

Here is the average speed / elevation graph showing the correct times at the bottom: image

Just want to say thanks for making this, amazing project so far!

jovandeginste commented 7 months ago

Are you running the service as a docker container? If so, would you mind adding an environment variable TZ=your/timezone? Just to check if it is indeed timezone related...

jovandeginste commented 7 months ago

As for an actual answer: I believe I need to add a "timezone" option to a user's profile, so I can merge the different ways I localize times into a single consistent way...

Fudgeey commented 7 months ago

Sweet, looks like setting the timezone worked! Thanks. image

jovandeginste commented 7 months ago

@Fudgeey could you try with the latest master image, without the TZ env var? You should set the timezone for your account via the web interface after updating.

Fudgeey commented 6 months ago

Yep! That all works fine now! Thanks.