Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

chore: set timezone environment variable in e2e workflow to fix timezone issue in node js server env (#178)

Vlad Sazonau77f9ae886c9e
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 5ddc60b..e31bcff 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -11,6 +11,8 @@ jobs:
timeout-minutes: 35
# we use macos-latest because I am using mac os locally and generating snapshots (screenshots) for the PDF tests locally, so we need to use the same OS on the CI. https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job#choosing-github-hosted-runners
runs-on: macos-latest
+ env:
+ TZ: Europe/Warsaw # we use Europe/Warsaw timezone for consistent date handling across local machines and CI
steps:
- run: |
echo "Environment URL - ${{ github.event_name == 'deployment_status' && github.event.deployment_status.environment_url }}"
diff --git a/playwright.config.ts b/playwright.config.ts
index b532bce..4f525c6 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -54,7 +54,7 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "retain-on-failure",
- // set timezone to Europe/Warsaw by default for consistent date handling across local machines and CI
+ // set timezone to Europe/Warsaw by default for consistent date handling across local machines and CI inside browser
timezoneId: "Europe/Warsaw",
// applies to: page.goto(), redirects, page.waitForURL(), clicking links that trigger navigation, form submits that navigate