From 5fc46d0cfc8b9001435951824ba6c4f02bafbec2 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 15 Apr 2020 14:01:23 +0200 Subject: [PATCH] Fix datetime parsing on python 3.5 datetime.astimezone supports native datetimes only since python 3.6 fixes #162 --- toot/tui/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toot/tui/utils.py b/toot/tui/utils.py index 4daa70a..90f85ad 100644 --- a/toot/tui/utils.py +++ b/toot/tui/utils.py @@ -2,7 +2,7 @@ import re import shutil import subprocess -from datetime import datetime +from datetime import datetime, timezone HASHTAG_PATTERN = re.compile(r'(?