Skip to content

Commit

Permalink
Force the tz of the upcoming buses
Browse files Browse the repository at this point in the history
  • Loading branch information
paraita committed Dec 20, 2016
1 parent a5bf840 commit 5b65713
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sophiabus230/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def _parse_entry(entry):
# case for later upcoming bus
tzinfos = {'FR': tz_paris}
bus_time = parse(split_entry[1], tzinfos=tzinfos)
bus_time.replace(tzinfo=tz_paris)
idx_start_direction = 3
dest = ' '.join(split_entry[idx_start_direction:idx_end_direction])
dest = dest.encode('utf-8')
Expand Down

0 comments on commit 5b65713

Please sign in to comment.