3 ms·
"Also what was the reason behind JS instead of doing this server-side with php/ruby?" I would assume it's so they can calculate based on the user's local time
by nbpoole 16y ago
"Also what was the reason behind JS instead of doing this server-side with php/ruby?"
I would assume it's so they can calculate based on the user's local time settings.
Edit: And here's the JavaScript, for anyone who's curious about the full list of possibilities (you'll need to hunt for the images in the stylesheet). http://www.conversionvoodoo.com/time-home.js http://www.conversionvoodoo.com/time-home.js
- aresant 16y agoYep, bang on. Simpler and faster than trying to do the equation to poll a geo-IP database, build appropriate timing, etc.