It used to be that we would use TimeZoneInfo.GetSystemTimeZones() to enumerate time zones.
How do you do it in Windows 8 apps?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve just
blogged about how to do this and included the code you need as a
gist.
Also, to address another commenter, no, ARM compatibility is not an issue as the marshaling happens correctly.
EDIT: just made it one better and turned it into a general purpose NuGet package:
https://nuget.org/packages/WinRTTimeZones
The source is here: https://github.com/onovotny/WinRTTimeZones