Skip to content

Commit

Permalink
Fix invalid utc format
Browse files Browse the repository at this point in the history
  • Loading branch information
hyugogirubato committed Jul 18, 2024
1 parent cba561c commit 0421d99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cbz/comic.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ def __info(items: dict, fields: dict) -> dict:
fields=COMIC_FIELDS)

comic_pages = []
comic_info['Pages'] = []
for i, page in enumerate(self.pages):
page_info = __info(
items={k: v for k, v in page.__dict__.items() if not k.startswith('_')},
Expand All @@ -211,7 +210,7 @@ def __info(items: dict, fields: dict) -> dict:
comic_pages.append(dict(sorted(page_info.items())))

# https://github.com/anansi-project/rfcs/issues/3#issuecomment-671631676
utcnow = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + ''
utcnow = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + 'Z'
comic_info.update({
'@xmlns:xsd': 'http://www.w3.org/2001/XMLSchema',
'@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
Expand Down

0 comments on commit 0421d99

Please sign in to comment.