-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On several FIT file exports times are totally off #177
Comments
Here is an example, which should be generally available: |
After several additional tests I see the following logic:
|
You pretty much nailed it. The date of an activity is unfortunately not consistently included in the activity data and depends on a bunch of seemingly unrelated factors like activity type and self vs peer activity. So when doing an export sometimes it has to guess or completely give up and just use the current date. You'll see something like this in the logs if you hit F12 before exporting... The only option I've seen so far (not that there isn't a better one that I've not discovered) is to try and use the localized date shown in the HTML, ie. "Monday, November 20, 2023", but this is incredibly error prone and would require some horrific hacks to try and make work for all the hundreds of different locales used by strava users. Here is the code that attempts to get the best date possible... sauce4strava/src/site/analysis.js Lines 1578 to 1615 in d13163a
|
Thank you very much for diving so deep into this problem. |
On several FIT file exports the times are off by days and hours. I could not find a clear indication, which activities / recording devices are affected, what I can say: I could only see the effect at activities recorded by a clock, eiteher Garmin or Polar. But a friend of mine using a Garmin 245 music has the effect, while my own activities recorded on a Garmin 245 music too are fine.
The text was updated successfully, but these errors were encountered: