From 329ae6ee7c5c41ecbcdd2557cd45b0755c6d4717 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 13 Mar 2021 11:29:58 +0000 Subject: [PATCH] Fix for py36 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 6116fce..c7babe6 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): -- 2.47.3