in reply to Re^3: How to get client-side's localtime from the server-side
in thread How to get client-side's localtime from the server-side
it's important to understand that it's a heuristic and not a real concrete method.I would never call it a heuristic since it makes use of a database lookup. The database can be huge. By contrast, a heuristic makes a guess based on (very) limited info.
If you use Geo::IP you can use the free though somewhat limited database, or, if you want a better precision — and likely, fewer errors, then you can pay for a bigger, commercial database from the same company who brought you the module.
n.b. I see that for the latter they require you need to be an "established business". That may be out of the reach of many developers here who may be wanting to use it for their own little projects.
Personally I think I'd go for the Lite version, and give the user the option to correct the guessed time zone, possibly making use of Javascript to automate it, for people who have Javascript enabled for your site.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to get client-side's localtime from the server-side
by kyle (Abbot) on Aug 06, 2007 at 16:44 UTC |