How to get timezone name in different language C# on Azure -


i getting timezone using

 string timezonename = "indian standard time";  var tz = timezoneinfo.findsystemtimezonebyid(timezonename); 

it returning desired value in english if change current culture , testing code on azure (web app service). please me find way in can code return value in different language arabic, french, etc.

this because not dealing name, id.

timezoneinfo.findsystemtimezonebyid

read method name. not "by name" "by id". id meant same across languages.

what can go across timezones , compared names (display name) likely, take 1 want. names localized:

https://msdn.microsoft.com/en-us/library/system.timezoneinfo.displayname(v=vs.110).aspx

the display name localized based on culture installed windows operating system.

but id not never ever change. on purpose.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -