From: alex Date: Sat, 13 Mar 2021 11:29:58 +0000 (+0000) Subject: Fix for py36 X-Git-Tag: 20240214-emacs~226^2~122 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=329ae6ee7c5c41ecbcdd2557cd45b0755c6d4717;p=alex.git Fix for py36 --- 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):