<font face="times new roman,serif">If someone is using a particular version of the TZ database, you can probe about 5-6 past dates to discover the zone id (of course, you can't distinguish the zones that have the same rules). We do that in browsers, where there isn't an API to get the zone. <br clear="all">
</font><div><font face="'times new roman', serif"><div style="background-color:transparent;margin-top:0px;margin-left:0px;margin-bottom:0px;margin-right:0px;font-family:Times;font-size:medium"><span style="font-family:'times new roman', serif;font-size:small"><br>
</span></div><div style="background-color:transparent;margin-top:0px;margin-left:0px;margin-bottom:0px;margin-right:0px;font-family:Times;font-size:medium"><span style="font-family:'times new roman', serif;font-size:small">Where the browser isn't using the TZ database (eg windows), you'll just get an approximation.</span></div>
<div style="background-color:transparent;margin-top:0px;margin-left:0px;margin-bottom:0px;margin-right:0px;font-family:Times;font-size:medium"><span style="font-family:'times new roman', serif;font-size:small"><br>
</span></div><div style="background-color:transparent;margin-top:0px;margin-left:0px;margin-bottom:0px;margin-right:0px;font-family:Times;font-size:medium"><span style="font-family:'times new roman', serif;font-size:small">Mark</span></div>
<i>— Il meglio è l’inimico del bene —</i></font><br>
<br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 21:16, Olson, Arthur David (NIH/NCI) [E] <span dir="ltr"><<a href="mailto:olsona@dc37a.nci.nih.gov">olsona@dc37a.nci.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm forwarding this message from Conrad Irwin, who is not on the time zone mailing list. Those of you who are on the list, please direct replies appropriately.  --ado<br>
<br>
-----Original Message-----<br>
From: Conrad Irwin [mailto:<a href="mailto:conrad.irwin@gmail.com">conrad.irwin@gmail.com</a>]<br>
Sent: Monday, August 08, 2011 7:59<br>
To: <a href="mailto:tz@lecserver.nci.nih.gov">tz@lecserver.nci.nih.gov</a><br>
Subject: Fingerprinting timezones<br>
<br>
Hello there,<br>
<br>
Thank you for the timezone database - it is a phenomenal resource.<br>
<br>
The problem I would like to solve is that of having to ask a user of a<br>
web-app for their timezone. While there is no way to directly query<br>
for the user's timezone, the javascript engine in their web-browser is<br>
capable of telling me the offset from UTC at any date.<br>
<br>
It seems like, by selecting some number of dates to query, I should be<br>
able to gather enough information to uniquely identify any given<br>
timezone (or at least make a very good guess for a large proportion of<br>
the user-base).<br>
<br>
Before I embarked on doing this, I wanted to ask if anyone has seen a<br>
similar attempt in the past? Are there some "gotchas" that mean that<br>
this isn't actually as feasible as I naïvely hope?<br>
<br>
Conrad<br>
<br>
<br>
</blockquote></div><br></div>