Scarygami / location-history-json-converter

Convert the Location History JSON File from Google Takeout into a useable format
Apache License 2.0
468 stars 117 forks source link

Dates should be from UTC epoch time? #14

Closed mehrdadn closed 6 years ago

mehrdadn commented 7 years ago

Hi,

I noticed you use datetime.fromtimestamp to convert epoch timestamps everywhere, but I believe the correct conversion would require datetime.utcfromtimestamp? My timestamps all seem to be UTC-based (and I think generally epoch timestamps are).

Thanks!

antonio-fiol commented 6 years ago

I made the change from datetime.fromtimestamp to datetime.utcfromtimestamp in all the appearances in the code, and now my timestamps in the GPX file look right.