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

can't specify start and end dates #35

Closed Pontusfroding closed 4 years ago

Pontusfroding commented 4 years ago

When I try to specify start and end date with -s and -e it doesn't work.

python3 location_history_json_converter.py "Location History.json" vacation.gpx -f gpxtracks -s 2017–01–12 -e 2017–01–29 -a 500

location_history_json_converter.py: error: argument -s/--startdate: Not a valid date: '2017–01–12'.

I'm using Python 3.8, if it matters? Am I perhaps missing something?

Scarygami commented 4 years ago

It seems that in the dates in the command above you have Unicode Dashes instead of normal dashes -

Try to copy/paste this command

python3 location_history_json_converter.py "Location History.json" vacation.gpx -f gpxtracks -s 2017-01-12 -e 2017-01-29 -a 500

Pontusfroding commented 4 years ago

Thanks for the really fast reply. And you are so correct it works now.

Now I just have to figure out how to type normal dashes ... Will have to copy in the meantime.