e9c7e9df1a
- tv app/Hobbs-Family-Organizer-Self-Hosted-v1.0.0: release bundle (Next.js app + Shield APK v1.4 + source) - compose/hf-pdocker-02/hobbs-organizer: override (local-disk secrets, watchtower off), .env (port 8340), Shield provisioning script - CLAUDE.md: service tree + internal ports Trusted-LAN mode. Secrets live only on .100 /var/lib/hobbs-organizer/secrets (not in git). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E9NnVEico3WvFxLyjy1iW3
18 lines
521 B
TypeScript
18 lines
521 B
TypeScript
export const dynamic = "force-dynamic";
|
|
|
|
export async function GET() {
|
|
const configuredTimeZone = process.env.ORGANIZER_TIMEZONE || "America/Chicago";
|
|
let timeZone = "America/Chicago";
|
|
try {
|
|
new Intl.DateTimeFormat("en-US", { timeZone: configuredTimeZone }).format(new Date());
|
|
timeZone = configuredTimeZone;
|
|
} catch {
|
|
// Keep a valid default if a deployment typo reaches the process.
|
|
}
|
|
|
|
return Response.json(
|
|
{ timeZone },
|
|
{ headers: { "Cache-Control": "public, max-age=3600" } },
|
|
);
|
|
}
|