diff --git a/hstp/episode.py b/hstp/episode.py index 6da0f3b..5813e5f 100644 --- a/hstp/episode.py +++ b/hstp/episode.py @@ -1,5 +1,6 @@ import os from datetime import datetime +from dateutil import parser from mutagen.mp3 import MP3 from .utils import is_slug @@ -16,7 +17,7 @@ def load(cls, info, data, path): name=data["name"], slug=data["slug"], description=data["description"], - date=datetime.strptime(data["date"], "%Y-%m-%dT%H:%M:%S"), + date=parser.isoparse(data["date"]), file=f"{path}/{data['slug']}.mp3", thumb=f"{path}/{data['slug']}.jpg" ) diff --git a/pyproject.toml b/pyproject.toml index 1f9be76..75373f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hstp" -version = "2.1.1" +version = "2.1.2" description = "hstp build" authors = ["University Radio Nottingham "] license = "MIT"