From 77d96ed137d81319aed8f4870ba36fb72aebcf29 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 22 Aug 2025 19:42:00 -0500 Subject: remove unecessary print statement and fix deprecated UTC function call --- build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'build.py') diff --git a/build.py b/build.py index 00019e6..d765019 100644 --- a/build.py +++ b/build.py @@ -291,7 +291,7 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"): loc = f"{base_url}{url_path}" # Last modified time - lastmod = datetime.utcfromtimestamp( + lastmod = datetime.fromtimestamp( os.path.getmtime(full_path) ).strftime("%Y-%m-%d") @@ -306,7 +306,6 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"): """ # Write to .build/sitemap.xml - print(build_dir) sitemap_path = os.path.join(build_dir, "sitemap.xml") with open(sitemap_path, "w", encoding="utf-8") as f: f.write(sitemap_xml) -- cgit v1.2.3-70-g09d2