From 329ae6ee7c5c41ecbcdd2557cd45b0755c6d4717 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 13 Mar 2021 11:29:58 +0000 Subject: Fix for py36 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build.py') diff --git a/build.py b/build.py index 6116fcee..c7babe6f 100755 --- a/build.py +++ b/build.py @@ -16,7 +16,7 @@ class Post: @property def posted(self): - return datetime.date.fromisoformat(self.content.splitlines()[1]) + return datetime.datetime.strptime(self.content.splitlines()[1], "%Y-%m-%d") @property def uri(self): -- cgit v1.2.3