Skip to content

Commit

Permalink
change ghost timestamp parsing to include any timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo-cunha authored Mar 6, 2024
1 parent f06ba78 commit 94242dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataroots_profile/ghost.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def posts(key: str, admin_domain: str = "dataroots.ghost.io") -> list[Post]:
slug=post["slug"],
published_at=datetime.strptime(
post["published_at"],
"%Y-%m-%dT%H:%M:%S.%f+00:00",
"%Y-%m-%dT%H:%M:%S.%f%z",
),
)
for post in response.json().get("posts", [])
Expand Down

0 comments on commit 94242dc

Please sign in to comment.