Skip to content

Commit

Permalink
Add TZ environment variable to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Jan 7, 2024
1 parent 4c813cc commit 2af1c6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ concurrency:
jobs:
test:
runs-on: ${{ matrix.os }}
env:
TZ: "-9:30"
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
Expand Down
3 changes: 3 additions & 0 deletions datetime-format-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ This macro helps with expression expansion at compile time."
`(prog1 (quote ,sequence)
,@(mapcar function sequence))))

(ert-deftest datetime-format-test-env-tz ()
(should (string= datetime-format-original-tz "-9:30")))

(ert-deftest datetime-format-test-format ()
(with-environment-variables (("TZ" "-9:30")) ;; Australia/Darwin
(datetime-format--map '(("2009-02-14T09:01:30+09:30" (datetime-format 'atom))
Expand Down

0 comments on commit 2af1c6b

Please sign in to comment.