10

Do TimeZoneInfo and Olson database use identical identificators for time zones?

I get timezone id from GeoNames service (which is based on Olson database) and want to retrieve day light saving information for that timezone.

SiberianGuy
  • 24,674
  • 56
  • 152
  • 266

2 Answers2

8

The unicode consortium keeps a mapping between Olson database and Windows TimeZone Ids, which can be accessed here.

Also see this SO question and answers for more daylight savings info (Daylight saving time - do and don’ts).

Community
  • 1
  • 1
Oded
  • 489,969
  • 99
  • 883
  • 1,009
3

No they don't use the same identifiers. A possible solution is to use Noda-Time which foregoes TimeZoneInfo in favour of Olson timezones.

Further reading: What's wrong with DateTime anyway?

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108