/** * Server (Coolify/Hetzner) runs in UTC, but the panel is used from Turkey * (UTC+3, no DST since 2016) — `.toLocaleString("tr-TR")` alone formats * with tr-TR conventions but still uses the *server's* timezone for the * actual time value, which was showing everything 3h behind. Always pin * the timezone explicitly instead of relying on the runtime's default. */ export function formatTr(date: Date | string): string { return new Date(date).toLocaleString("tr-TR", { timeZone: "Europe/Istanbul" }); }