Re:Show HN: An easy way to convert time
by avg_dev on Thursday June 29, 2017 @03:37PM
(#14666225)
Neat site. How does it know my local time?
[ Parent
| on HN ]
Looking at the response headers, could they be inferring the timezone based on what cloud front server the user hits?
Edit: This is probably way over thinking it, but here are the Amazon data center IP's. Search "CLOUDFRONT" https://ip-ranges.amazonaws.com/ip-ranges.json to see the list of regions.
IP geolocation - try it from a proxy.
Geo lookup on your IP to get a time zone. Easy to spoof with a proxy / vpn.
Getting of your browser?
Yes - but how? I looked at the HTTP headers I was sending and none of them contained the time zone.
Open your console and type `new Date()`. In JS every date is local time by default
Sure, but there is no JS on the page, and curling https://api.epoch.sh gives the same result.