Hit Stockholm instead of Berlin
//I am keeping this issue reported by Timo around since it contains a conversation about why this issue will not be fixed. jsTimezoneDetect will not do geolocation in the foreseeable future. (Jon)//
I think there is a way to get the timezone more specifically. Now the code is such that we can determine only 7 of +2:00 zones. The total number of zones is 34:
For example in Finland the code produces now Europe/Istanbul, which is annoying for us Finns. And people in Sweden doesn't want to be in Europe/Berlin, they want to be in Europe/Stockholm. We can easily get the daylight savings history by $ zdump -v Europe/Stockholm or by PHP
$timezone = new DateTimeZone("Europe/London"); $transitions = $timezone->getTransitions(); }}}
In either way we can find the time when daylight savings at all started first time in each and every timezone. In Finland the first time was Thu Apr 2 22:00:00 1942 UTC. In Sweden the first start was Sun May 14 22:00:00 1916 UTC.
We can nearly surely find a time when Europe/Helsinki was in DST, and others not. If not by checking the DST start dates, but checking also by DST end dates. The advantage of this approach to check past days (opposed to future dates) is that they don't change. The update is only needed when A) new timezones are created or B) the name of timezone changes or C) the historydata of some timezone's transitions is changed
what thoughts this approach raises?