aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2021-03-13 11:29:58 +0000
committeralex <alex@pdp7.net>2021-03-13 11:29:58 +0000
commit329ae6ee7c5c41ecbcdd2557cd45b0755c6d4717 (patch)
tree0ec36c5b3955dd98aaf189ca3b448ca441b50d33
parent71d53390b95dba0ffe9ca90a5ea346f8314e2afa (diff)
Fix for py36
-rwxr-xr-xbuild.py2
1 files changed, 1 insertions, 1 deletions
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):