Skip to content

Commit

Permalink
Supporting python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
romanc committed Oct 8, 2020
1 parent 1f506eb commit 08f07f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trashbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def button(update, context):
query.edit_message_text(error_msg)
return

next_date = date.fromisoformat(
data['result'][0]['date']).strftime('%a, %b %d %Y')
next_date = datetime.strptime(
data['result'][0]['date'], "%Y-%m-%d").strftime('%a, %b %d %Y')

query.edit_message_text(text="Next %s in your area:\n%s" %
(name[query.data], next_date))
Expand Down

0 comments on commit 08f07f1

Please sign in to comment.