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 timezone for Namibia (Africa/Windhoek)  XML
Forum Index -> General
Author Message
eric.poirrier@pvsyst.com



Joined: 29/04/2026 15:33:41
Messages: 2
Offline

Dear GeoNames team,

I would like to report a potential issue with the timezone assigned to locations in Namibia.

Namibia has used a fixed timezone of UTC+2 (Africa/Windhoek) year-round since 2017, after abolishing daylight saving time.

Could you please verify and update the timezone data for Namibia to ensure it consistently reflects:

Timezone ID: Africa/Windhoek
UTC offset: +2

Thank you for your work maintaining GeoNames, and please let me know if any further details are needed.

Kind regards,
Eric
marc



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

Hi Eric

Do you have examples where it is certainly wrong?

right now I see:
Code:
 select count(*),timezoneid from geoname where countrycode='NA' group by 2;
  count |     timezoneid
 -------+---------------------
      2 | Africa/Lusaka
      4 | Africa/Luanda
     16 | Africa/Johannesburg
  12782 | Africa/Windhoek
 


Most features are on Africa/Windhoek. Some have a neighbouring timezone, to me it is not clear whether the countrycode is wrong or the timezone is wrong.


[WWW]
eric.poirrier@pvsyst.com



Joined: 29/04/2026 15:33:41
Messages: 2
Offline

Hi Mark,
thanks for your reply. When I run the following request for a point located in Namibia:
http://api.geonames.org/timezoneJSON?lat=-22.56&lng=17.08&username=XXXXX

I receive the following response:

{
"sunrise": "2026-10-05 06:28",
"lng": 17.08,
"countryCode": "NA",
"gmtOffset": 2,
"rawOffset": 1,
"sunset": "2026-10-05 18:51",
"timezoneId": "Africa/Windhoek",
"dstOffset": 2,
"countryName": "Namibia",
"time": "2026-10-05 09:52",
"lat": -22.56
}
As far as I can tell, this response contains incorrect data as Namibia permanently switched to UTC+2 in 2017 and no longer use DST since.

I would therefore expect rawOffset (the offset without DST) to be equal to 2 (UTC+2).

Best regards
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team