From dd069329ee073159251a9eda693e814a2567df20 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 5 May 2025 15:39:07 -0700 Subject: [PATCH] Add timezone and locale to alerts --- src/app/commands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/commands.ts b/src/app/commands.ts index 37e0a1a..8cea264 100644 --- a/src/app/commands.ts +++ b/src/app/commands.ts @@ -1,6 +1,6 @@ import * as nip19 from "nostr-tools/nip19" import {get} from "svelte/store" -import {randomId, ifLet, poll, uniq, equals} from "@welshman/lib" +import {randomId, ifLet, poll, uniq, equals, TIMEZONE, LOCALE} from "@welshman/lib" import type {Feed} from "@welshman/feeds" import type {TrustedEvent, EventContent} from "@welshman/util" import { @@ -418,6 +418,8 @@ export const makeAlert = async ({cron, email, feed, bunker, secret, description} ["feed", JSON.stringify(feed)], ["cron", cron], ["email", email], + ["locale", LOCALE], + ["timezone", TIMEZONE], ["description", description], ["channel", "email"], [