dbgalz11
CDCloudflare Developers
•Created by dbgalz11 on 3/26/2024 in #workers-help
Convert request timezone to another timezone in another country/region
Hi guys, I'm new to cloudflare workers especially wrangler.
Just wanna check if you have any idea how to possibly achieve this one. I know we can get timezone from request.cf but my use case is i want to convert the local current time to a time where the request is coming from. Ex. would be If I received a request in my current time like 8AM HKT and I want a response based where the source request is coming from (in this example "India") the return response would be 05:30 IST. Thanks in advance.
Just wanna check if you have any idea how to possibly achieve this one. I know we can get timezone from request.cf but my use case is i want to convert the local current time to a time where the request is coming from. Ex. would be If I received a request in my current time like 8AM HKT and I want a response based where the source request is coming from (in this example "India") the return response would be 05:30 IST. Thanks in advance.
1 replies