Skip to content

Commit

Permalink
use static "_strptime" method to parse "date" argument of "get" method
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitali Balandin committed Sep 8, 2021
1 parent 2e4b234 commit 55ab07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overpass/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get(self, query, responseformat="geojson", verbosity="body", build=True, dat
date = datetime.fromisoformat(date)
except ValueError:
# The 'Z' in a standard overpass date will throw fromisoformat() off
date = datetime.strptime(date, '%Y-%m-%dT%H:%M:%SZ')
date = self._strptime(date)
# Construct full Overpass query
if build:
full_query = self._construct_ql_query(
Expand Down

0 comments on commit 55ab07c

Please sign in to comment.