Wunderground and UTC Offset

Posted by Brandon on Stack Overflow See other posts from Stack Overflow or by Brandon
Published on 2010-03-24T17:02:52Z Indexed on 2010/03/24 17:33 UTC
Read the original article Hit count: 295

Filed under:
|
|
|

I am consuming the international weather forecasts via Wunderground's XML API:

http://wiki.wunderground.com/index.php/API_-_XML

Looking at an output for Kabul, Afghanistan for instance:

http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=OAKB

I notice that there is no UTC offset. The closest that I can see is this:

<tz_short>AFT</tz_short>

Which identifies the current TimeZone is AFT. The problem I see is that there is no universally accepted time zone abbreviations, so I cannot take these abbreviations and look up and offset from C#'s TimeZoneInfo objects.

Is there a listing of Wunderground's Time Zones abbreviations/names/offsets so I can map their Time Zones to the TimeZoneInfo objects, or is there a better way to get this information? I will need to use the TimeZoneInfo so I can calculate daylight savings time for different locations internationally.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET