@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 10 lines 277 Bytes
Raw
1 const HEADER = "x-visitor-timezone";
2
3 export function visitorTimezoneHeader(): string {
4 return HEADER;
5 }
6
7 export function timezoneFromRequest(request: Request): string {
8 const cf = (request as Request & { cf?: { timezone?: string } }).cf;
9 return cf?.timezone ?? "UTC";
10 }