Skip to content

Commit 16a6304

Browse files
committed
Applied spicefather's fix for date time formats
See ping#17
1 parent 1d11577 commit 16a6304

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

calibre-plugin/libby/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def parse_datetime(value: str) -> Optional[datetime]: # type: ignore[return]
323323
"%Y-%m-%dT%H:%M:%S.%fZ",
324324
"%Y-%m-%dT%H:%M:%S%z",
325325
"%Y-%m-%dT%H:%M:%S.%f%z",
326+
"%Y-%m-%dT%H:%M:%S",
327+
"%Y-%m-%dT%H:%M:%S.%f",
326328
"%m/%d/%Y", # publishDateText
327329
)
328330
for i, fmt in enumerate(formats, start=1):

0 commit comments

Comments
 (0)