Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
.repos
/
alchemy-effect
/
examples
/
cloudflare-website-vinext
/
src
/
VisitorTimezone.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
10 lines
277 Bytes
Copy permalink
Copy
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
}