Closed atlochowski closed 4 years ago
That is a really strange bug. Do you still have this? I have no idea why this could happen. If a workout is saved the date/time is taken from the system.
Because of this bug i stoped to use Laufhelden. I just checked and track from now is saved as from 31.08.2000 13:31:05
Is the date in system settings and other apps shown correctly? What phone are you using, is it a community port?
I have Jolla 1 and Jolla C. Date in every other apps is correct.
Because of this issue I switched Laufhelden to OSM Scout.
Could you open a GPX file (saved with Laufhelden) with a text editor and check if the date is ok there?
It's not ok, i checked it. The date is the same as saved date.
Is the filename of the GPX file also the wrong date?
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/Gp
xExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1
.xsd" version="1.1" Creator="Laufhelden" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1">
<metadata>
<name>Jazda na rolkach - czw. sie 31 13:31:05 2000 - 0.0km</name>
<desc></desc>
<extensions>
<meerun uid="1c53fb3a34cd468a" activity="inlineSkating" filtered="false" interval="1" elevationCorrected="false" manualPause="true" autoPause="false" autoPauseSensiti
vity="medium" gpsPause="false" createLapOnPause="false"/>
</extensions>
</metadata>
<trk>
<trkseg>
<trkpt lat="52.2071305" lon="20.97989607">
<time>2000-08-31T11:31:05Z</time>
<ele>173</ele>
<extensions>
<g_spd>0</g_spd>
<h_acc>28</h_acc>
<v_acc>28</v_acc>
<gpxtpx:TrackPointExtension>
<gpxtpx:hr>0</gpxtpx:hr>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>
<trkpt lat="52.20712546" lon="20.9798975">
<time>2000-08-31T11:31:06Z</time>
<ele>171</ele>
<extensions>
<g_spd>0</g_spd>
<h_acc>21</h_acc>
<v_acc>21</v_acc>
</extensions>
</trkpt>
<trkpt lat="52.20712699" lon="20.97989982">
<time>2000-08-31T11:31:07Z</time>
<ele>173</ele>
<extensions>
<g_spd>0</g_spd>
<h_acc>16</h_acc>
:
Is the filename of the GPX file also the wrong date?
Yes
date on my phone:
[nemo@Sailfish ~]$ date
Thu Apr 16 13:50:23 CEST 2020
[nemo@Sailfish ~]$
The strange thing is that nobody else seems to have this problem. To get to the core of the problem some debugging of C++ files would be neccessary. Are you familiar with this?
i'm familiar with debugging linux systems, bash scripts and ruby scripts but not C++
Ok I will have a look into the code maybe today or next week. I might give you a version with extended debug messaged.
Today I used OSM scout as a tracker and get 2000 year in track. So it's something wrong, somewhere else but not in you app. Sorry.
The Laufhelden writes the GPS timestamps to the GPX file: https://github.com/martonmiklos/Laufhelden/blob/master/src/trackrecorder.cpp#L466 which is coming from the Qt's QGeoPositionInfoSource, so something is messed up in the lower layers.
@atlochowski on what device do you see this problem?
Hmm I have used extensively my JP1 in Q1 this year and have not detected anything like this.
I had similar problem at the beginning of this year. Then I changed tracker to OSM Scout and it was ok. And now OSM Scout is affected as well. But it looks like it's something deeper then apps.
Ups. In recent release of OSM Scout, I just changed time source for from new Date()
(current device time) to Position.timestamp
(time from GPS position event).
Did you try to use different location settings? I am using GPS, online Here service and offline Mozilla service... I will try to reproduce it with my Jolla 1, now I am using Jolla C as my primary phone and it is fine...
so I think this is the reason why it's not ok anymore "Ups. In recent release of OSM Scout, I just changed time source for from new Date() (current device time) to Position.timestamp (time from GPS position event)." Because time from device is ok, but from gps not.
Yes, on Jolla C everything is fine. Tried different location settings without result.
@Karry just installed version 2.0 and it's ok now.
So it's not Laufhelden related so I'm closing.
It is weird. It is possible that you have different firmware in your gps chip... Lets see if someone from Jolla or community will comment that... Anyway, there is simple workaround in applications: https://github.com/Karry/osmscout-sailfish/commit/21cf58edd0f9d0df6a5aec8c0c0b4772908efb79
Laufhelden set all new workouts.to year 2000. Yesterday and today I made hiking. Both workouts are dated to may 2000. EDIT: Changed workout to running and again has year 2000, 22.05.2000