Skip to content

Commit c28789f

Browse files
committed
Changed Parse method, bumped version
1 parent cc3ea64 commit c28789f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

hstp/episode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
from datetime import datetime
3+
from dateutil import parser
34
from mutagen.mp3 import MP3
45

56
from .utils import is_slug
@@ -16,7 +17,7 @@ def load(cls, info, data, path):
1617
name=data["name"],
1718
slug=data["slug"],
1819
description=data["description"],
19-
date=datetime.strptime(data["date"], "%Y-%m-%dT%H:%M:%S"),
20+
date=parser.isoparse(data["date"]),
2021
file=f"{path}/{data['slug']}.mp3",
2122
thumb=f"{path}/{data['slug']}.jpg"
2223
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hstp"
3-
version = "2.1.1"
3+
version = "2.1.2"
44
description = "hstp build"
55
authors = ["University Radio Nottingham <web@urn1350.net>"]
66
license = "MIT"

0 commit comments

Comments
 (0)