xenDE
3351c251ef
fix gps timestamp parsing
problem on timestamp parsing if microseconds are more then 6 numbers.
will fix bug reported in this pr: https://github.com/evilsocket/pwnagotchi/pull/619
tested with testdata from https://github.com/xenDE/pwnagotchi-plugin-webgpsmap/tree/master/handshakes.gps-map-test
before:
[2019-11-19 00:37:51,946] [INFO] webgpsmap: scanning /root/handshakes.gps-map-test
[2019-11-19 00:37:52,022] [INFO] webgpsmap: Found 4 .(geo|gps).json files from 5 handshakes. Fetching positions ...
[2019-11-19 00:37:52,144] [ERROR] Lng is 0
[2019-11-19 00:37:52,241] [ERROR] Invalid isoformat string: '2019-11-14T12:30:41.097414739+01:00'
[2019-11-19 00:37:52,280] [ERROR] Lng is 0
[2019-11-19 00:37:52,329] [INFO] webgpsmap loaded 2 positions
after:
[2019-11-19 00:48:04,652] [INFO] webgpsmap: scanning /root/handshakes.gps-map-test
[2019-11-19 00:48:04,693] [INFO] webgpsmap: Found 5 .(geo|gps).json files from 6 handshakes. Fetching positions ...
[2019-11-19 00:48:04,760] [ERROR] Lng is 0
[2019-11-19 00:48:04,822] [ERROR] Lng is 0
[2019-11-19 00:48:04,850] [INFO] webgpsmap loaded 3 positions
2019-11-19 00:56:59 +01:00
..
2019-11-13 01:32:05 +01:00
2019-11-12 22:58:02 -08:00
2019-11-13 01:32:05 +01:00
2019-11-19 00:56:59 +01:00
2019-11-18 13:24:58 +01:00
2019-11-18 14:12:13 +01:00
2019-11-15 12:27:53 +01:00
2019-11-01 15:53:31 +01:00
2019-10-23 19:32:24 +02:00
2019-11-14 11:26:32 +02:00
2019-11-13 14:37:13 +01:00
2019-10-21 11:33:48 +02:00
2019-11-08 13:01:50 +01:00
2019-11-11 14:15:48 +01:00
2019-11-01 15:53:31 +01:00