Home How to retrieve the system timezone in TZ format .net c#
Reply: 0

How to retrieve the system timezone in TZ format .net c#

user573
1#
user573 Published in April 22, 2018, 12:55 am

I'm trying to work out how to retrieve the current system timezone in a (TZ) format on windows, ie. America/New_York, I need to supply this to an API this application communicates with.

I'm currently using

TimeZone.CurrentTimeZone

Which gives me this output

GMT Standard Time

What I hope to get is something like

Europe/London

Am I missing something simple or is this not available and thus does that mean I need to do the conversion myself?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300972 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO