Skip to content

Commit

Permalink
Change timezone to where i live
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-d-zhang committed Aug 1, 2024
1 parent 8041123 commit 2a7826a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import subprocess
import itertools
import datetime
import zoneinfo

MY_NAME = "jonathan-zhang"
JOBNAME_TEMPLATE = "{name}-{date}-{slug}"
Expand All @@ -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"""
Expand Down

0 comments on commit 2a7826a

Please sign in to comment.