CF Worker determine time of day/timezone?

I have CF worker for full page HTML caching for guest visitors for my forums. But forums have an off peak and peak member/posting activity time. During off peak not many new posts/threads are created while during peak more new user generated content is made.

So I was wondering can CF workers determine the time of day (hour) and timezone a request is made ? So I could set a longer cache ttl for off peak times i.e. 12am to 6 am PST and set a shorter cache ttl time for peak hour times i.e. 6am to 8pm PST ?

1 Like

looks like @signalnerve already covered that at https://cloudflareworkers.com/?&_ga=2.210309013.1661354319.1590399175-1e120377e5869563dd571ab6d3c69695#2624cc02d6b6b4376cd9e3e164c4ec85:https://tutorial.Cloudflareworkers.com from Do a time based redirect in cloudflare workers? :sunglasses: