]> xn--ix-yja.es Git - alex.git/commitdiff
Fix for py36
authoralex <alex@pdp7.net>
Sat, 13 Mar 2021 11:29:58 +0000 (11:29 +0000)
committeralex <alex@pdp7.net>
Sat, 13 Mar 2021 11:29:58 +0000 (11:29 +0000)
build.py

index 6116fcee1d928825966a69d0c3cd946f7f951b12..c7babe6f239b2fc977b424de0e87e6947cdd4e7b 100755 (executable)
--- 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):