From 2af1c6b7a96f3f37d83464f83e58079807e78107 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Sat, 6 Jan 2024 07:51:57 +0930 Subject: [PATCH] Add TZ environment variable to GitHub Actions --- .github/workflows/test.yml | 2 ++ datetime-format-test.el | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e105b93..f78fffb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,8 @@ concurrency: jobs: test: runs-on: ${{ matrix.os }} + env: + TZ: "-9:30" continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false diff --git a/datetime-format-test.el b/datetime-format-test.el index 1573881..a4b1b28 100644 --- a/datetime-format-test.el +++ b/datetime-format-test.el @@ -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))