Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

e2e: runs happen at local midday, so the fake standup in five minutes never lands tomorrow

christianmatfc9450221a56
diff --git a/app/playwright.config.ts b/app/playwright.config.ts
index 50a6fc9d..1ae4b77e 100644
--- a/app/playwright.config.ts
+++ b/app/playwright.config.ts
@@ -11,6 +11,11 @@ if (existsSync(join(homedir(), '.yogurt-no-local-e2e'))) {
process.env.YOGURT_BACKGROUND ??= '1'
// tests read the English text, whatever this computer's language
process.env.YOGURT_SYSTEM_LANGUAGES ??= 'en-US'
+// Runs happen where it's about midday, so none crosses midnight: the fake standup "in five minutes" stays today, and
+// "today" in the app and in the test is the same day. Etc/GMT+N is UTC-N (the sign is flipped), with no daylight saving.
+// Set once here; the workers and the app inherit it.
+const toNoon = 12 - new Date().getUTCHours()
+process.env.TZ ??= `Etc/GMT${toNoon > 0 ? '-' : '+'}${Math.abs(toNoon)}`
// CI machines are slower: a test that only passes on its second try is reported as flaky, not hidden
export default defineConfig({