diff options
| author | alex <alex@pdp7.net> | 2021-03-13 11:29:58 +0000 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2021-03-13 11:29:58 +0000 |
| commit | 329ae6ee7c5c41ecbcdd2557cd45b0755c6d4717 (patch) | |
| tree | 0ec36c5b3955dd98aaf189ca3b448ca441b50d33 | |
| parent | 71d53390b95dba0ffe9ca90a5ea346f8314e2afa (diff) | |
Fix for py36
| -rwxr-xr-x | build.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): |
