Skip to content

Commit

Permalink
Shift timestamp to Mountain Time
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Dec 19, 2024
1 parent acac8c4 commit 6cf5297
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/activity/updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ links to sources, and other news that may be of interest to the WETO community.
import os
from pathlib import Path
from datetime import datetime, timedelta
from datetime import datetime, timezone, timedelta
from ghapi.all import GhApi
import yaml
from IPython.display import Markdown, display
Expand Down Expand Up @@ -59,7 +59,8 @@ for account, repo, release_date in recent_releases:
release_list_md += f"- {account}/{repo} - {release_date.strftime('%Y-%m-%d')}\n"
display(Markdown(release_list_md))
display(Markdown(f"*Updated on {datetime.today().strftime('%Y-%m-%d')}*"))
display(Markdown(f"*Updated on {datetime.now(tz=timezone(-timedelta(hours=7))).strftime('%Y-%m-%d')}*"))
# Note the timedelta is inaccurate for part of the year, but it's purpose is to have the correct day
```

## Latest News
Expand Down

0 comments on commit 6cf5297

Please sign in to comment.