From 2a7826a0663cd7cac97d9eae95cd05858bac7c02 Mon Sep 17 00:00:00 2001 From: jonathan-d-zhang <69145546+jonathan-d-zhang@users.noreply.github.com> Date: Wed, 31 Jul 2024 21:56:43 -0400 Subject: [PATCH] Change timezone to where i live --- .github/workflows/release.yaml | 2 +- build.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8c87001..02f6dcf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,7 +58,7 @@ jobs: - name: Create PNG # Adjust this to whichever resume you want to display - run: python -m pdf2png jonathan-zhang-*-anon-swe.pdf main.png + run: python -m pdf2png anon-*-backend-python.pdf main.png - name: Upload PNG uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce diff --git a/build.py b/build.py index 90f77ce..5746d96 100644 --- a/build.py +++ b/build.py @@ -3,6 +3,7 @@ import subprocess import itertools import datetime +import zoneinfo MY_NAME = "jonathan-zhang" JOBNAME_TEMPLATE = "{name}-{date}-{slug}" @@ -22,10 +23,12 @@ f"-output-directory={BUILD_DIR.resolve()}", ] + + def date() -> str: """Produces a date in the format I want, in my time zone""" - return datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d") + return datetime.datetime.now(tz=zoneinfo.ZoneInfo("America/New_York")).strftime("%Y-%m-%d") def cat_files(p: Path) -> str: """Concatenate all files in a directory"""