From 683ad3ef94a501450d0275be468d7248da06101a Mon Sep 17 00:00:00 2001 From: bruno Date: Tue, 27 Oct 2026 22:57:29 -0400 Subject: [PATCH] [fix] Corrections ruff CI (UP017/UP041/UP012/I001/F401/FURB162) : backend/export.py --- backend/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/export.py b/backend/export.py index 01eec00..c70bd0d 100644 --- a/backend/export.py +++ b/backend/export.py @@ -359,7 +359,7 @@ def export_epub(vault_path: Path, file_path: Path) -> bytes: rendered = _render_body(body, path.parent, vault_path, path) - uid = f"obsigate-{_slugify(title)}-{int(datetime.datetime.now(tz=datetime.timezone.utc).timestamp())}" + uid = f"obsigate-{_slugify(title)}-{int(datetime.datetime.now(tz=datetime.UTC).timestamp())}" xhtml = f""" @@ -383,7 +383,7 @@ def export_epub(vault_path: Path, file_path: Path) -> bytes: {html_mod.escape(title)} {html_mod.escape(author)} fr - {datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ')} + {datetime.datetime.now(datetime.UTC).strftime('%Y-%m-%dT%H:%M:%SZ')}