Closed farahlima closed 1 year ago
I did some digging:
OwnTrack Android client: long
, i.e. 64 bit.
OwnTracks iOS client: NSNumber
storing a double, i.e. 64 bit.
OwnTracks recorder: C long
, i.e. 64 bit (assuming a modern machine):
https://github.com/owntracks/recorder/blob/37cae69f5fc0c369b1dad2e5071195d14251c2e1/storage.c#L656
OwnTracks frontend: Using JS's JSON.parse()
, so a 64 bit double as well.
Hope this helps!
Wow, thank you so much. It helped a lot!
As a personal project I'm building a backend solution for HTTP payloads in Golang using MariaDB as storage. While looking at the booklet I noticed that the "tst" field in the JSON paylaod says that the value is "UNIX epoch timestamp in seconds of the location fix" and this got me wondering if there would be any issues with the Year 2038 problem. Is this value passed as a 32bit or 64bit integer (i think that this question applies to both iOS and Android clients). Thanks