GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Incorrect Offsets for Calais, Maine, United States  XML
Forum Index -> Discussion of GeoNames Toponyms
Author Message
wilc0n



Joined: 16/03/2018 16:57:59
Messages: 1
Offline

It looks like one of your services is returning incorrect time offset information for a lat/long. Latitude 45.183049 Longitude -67.283742 should return America/New_York as the time zone with the corresponding offsets, as seen in the second response below.

Incorrect:


<geonames>
<timezone tzversion="tzdata2017c">
<countryCode>CA</countryCode>
<countryName>Canada</countryName>
<lat>45.183049</lat>
<lng>-67.283742</lng>
<timezoneId>America/Moncton</timezoneId>
<dstOffset>-3.0</dstOffset>
<gmtOffset>-4.0</gmtOffset>
<rawOffset>-4.0</rawOffset>
<time>2018-03-16 12:46</time>
<sunrise>2018-03-16 07:40</sunrise>
<sunset>2018-03-16 19:36</sunset>
</timezone>
</geonames>

Correct:
http://ws.geonames.org/timezone?lat=45.183049&lng=-67.283742

<geonames>
<timezone tzversion="tzdata2016j">
<countryCode>US</countryCode>
<countryName>United States</countryName>
<lat>45.183049</lat>
<lng>-67.283742</lng>
<timezoneId>America/New_York</timezoneId>
<dstOffset>-4.0</dstOffset>
<gmtOffset>-5.0</gmtOffset>
<rawOffset>-5.0</rawOffset>
<time>2018-03-16 11:54</time>
<sunrise>2018-03-16 06:40</sunrise>
<sunset>2018-03-16 18:36</sunset>
</timezone>
</geonames>
marc



Joined: 08/12/2005 07:39:47
Messages: 4105
Offline

thanks. Will be fixed.

Marc

[WWW]
 
Forum Index -> Discussion of GeoNames Toponyms
Go to:   
Powered by JForum 2.1.5 © JForum Team