On 28/10/2021 13:37, Guido Mennen wrote:
> I have the same issue with my Uwatec Smart Z,
> Only a little bit worse ...
> It imports dives correctly, but dates them in august 2010
>
> The smartTRACK software imports at the correct date
> I'll also send you my logfiles, hope there is something to learn from them.
In the logfile you have:
Event: systime=1635420555, devtime=673467714
That's respectively the timestamp at the time of the download on the host system
(systime) and the dive computer (devtime). That corresponds to a reference time
(epoch = systime - devtime / 2) of:
2011-02-26T02:18:18 UTC (1298686698)
The expected epoch value for uwatec/scubapro dive computers (and the value used
in our parser) is:
2000-01-01 00:00:00 UTC (946684800)
Since there is such a huge difference of about 11 years (352001898 seconds), all
your date/time values are also completely off with the same amount!
I have no idea why the difference is so large. Some small differences are
expected due to clock drifts, etc. Typically these differences are at most a few
minutes. There are also many cases in my dataset where the difference is around
one hour (or a nice multiple of one hour), which I suspect are caused by users
changing the clock due to DST changes (or timezone changes). I have only one
other case in my dataset where the difference was also very large (about 1.5 year).
The reason why we switched to the fixed epoch is because of that user changeable
clock. Due to how the uwatec/scubapro dive computers maintain their time,
adjusting the clock also changes the date/time of all previously recorded dives.
So if you download dives after a clock change, the date/time of all earlier
dives would now be off.
I believe smarttrak uses the calculated systime/devtime instead of the fixed
epoch. So that's why it shows the correct time. I'm not sure about logtrak. Can
you try to download your dives with logtrak to see what dates you get there? Can
you also double check what dates your dive computer shows in it's internal
logbook, and it's current time? I suspect it will be off as well.
Jef