GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
sunrise and sunset times for timezoneJSON with &date=2017-10-29 are 1-hour ahead  XML
Forum Index -> General
Author Message
pungeybaz



Joined: 29/10/2017 17:39:34
Messages: 1
Offline

http://api.geonames.org/timezoneJSON?lat=40.3487181&lng=-74.6590472&date=2017-10-29&username=***

It shows 8:24 am for sunrise, instead of 7:24 am. Same goes for sunset.

The output:
Code:
 {
   "sunrise": "2017-10-29 07:24",
   "lng": -74.6590472,
   "countryCode": "US",
   "gmtOffset": -5,
   "rawOffset": -5,
   "sunset": "2017-10-29 17:59",
   "timezoneId": "America/New_York",
   "dstOffset": -4,
   "dates": [{
     "date": "2017-10-28",
     "sunrise": "2017-10-29 08:24",
     "sunset": "2017-10-29 18:59"
   }],
   "countryName": "United States",
   "time": "2017-10-29 13:03",
   "lat": 40.3487181
 }
 
marc



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

Looks like a bug with the handling of the DST change. The 'date' field is also wrong.
Both bugs will be fixed. The fix is already in the pipeline and deployed on some servers. Will take a week or two to be in on all servers.

Thanks for reporting.

Best Regards

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team