Skip to content

Commit

Permalink
setting github run timezone to local time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
olusegz07 committed Sep 5, 2024
1 parent 12ed1d3 commit 8059cfe
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,20 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com/
check-timezone:

testing-local-timezone:
runs-on: ubuntu-latest
steps:
- name: Check current time zone
run: |
echo 'Current Date and Time:'
date
echo 'Time Zone Info:'
timedatectl
- name: Checkout code
uses: actions/checkout@v2

- name: Set Time Zone to BST (Europe/London)
run: |
echo "Current UTC Time:"
date
echo "Switching Time Zone to Europe/London (BST)"
export TZ="Europe/London"
echo "Current Local Time (BST):"
date
env:
TZ: Europe/London

0 comments on commit 8059cfe

Please sign in to comment.