owntracks / talk

Questions, talk about OwnTracks
32 stars 4 forks source link

Owntracks and Year 2038 Problem #156

Closed farahlima closed 1 year ago

farahlima commented 1 year ago

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

linusg commented 1 year ago

I did some digging:

Hope this helps!

farahlima commented 1 year ago

Wow, thank you so much. It helped a lot!