Earlier quoted context omitted.
it's beautiful. btw, could this be all done in client side js? didnt look at the implementation, probably server is used to resolve location?
(not author) from the source: const { latitude = "0", longitude = "0" } = Astro.locals.runtime.cf || {}; To do it client-side, you would probably have to call some less-reputable IP geolocation service, or settle for navigator.geolocation which has a permission popup
I've made a library for my own use cases that does this (https://github.com/mcteamster/virgo), but it's also pretty straightforward to parse the city/state name out of the timezone and look it up somewhere.