Quantcast
Channel: together.jolla.com - Individual question feed
Viewing all articles
Browse latest Browse all 31

Comment by peterleinchen

$
0
0
Sorry to be klein-kariert hier. But it is an okay workaround. The rollover date was 2019-04-07 00:00:00 GMT (1554595200).
The fix would be: ts = gps.time // now t0 = 315964800 // GPS zero time tR = 619315200 // 1024 weeks if (ts < t0) print 'no GPS yet, sorry' if (ts < t0+tR+tR) ts += tR The number of tR to check/add is a device specific parameter. This fix is for devices after 1999-08-22 (N900, N9, Jolla1..) and good for the next 19.7 years. One could also take the non-GPS system time into account and write a globally valid and future-proof fix...

Viewing all articles
Browse latest Browse all 31

Trending Articles