Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetUtcStandardDisplayName()

static string System.TimeZoneInfo.GetUtcStandardDisplayName ( )
inlinestaticprivate

Definition at line 2862 of file TimeZoneInfo.cs.

2863 {
2865 if (currentUICulture.Name.Length == 0 || currentUICulture.TwoLetterISOLanguageName == "en")
2866 {
2867 return "Coordinated Universal Time";
2868 }
2869 string text = null;
2870 using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones\\UTC", writable: false))
2871 {
2872 if (registryKey != null)
2873 {
2874 string text2 = registryKey.GetValue("MUI_Std", string.Empty) as string;
2875 if (!string.IsNullOrEmpty(text2))
2876 {
2878 }
2879 if (string.IsNullOrEmpty(text))
2880 {
2881 text = registryKey.GetValue("Std", string.Empty) as string;
2882 }
2883 }
2884 }
2885 switch (text)
2886 {
2887 case null:
2888 case "GMT":
2889 case "UTC":
2890 text = "Coordinated Universal Time";
2891 break;
2892 }
2893 return text;
2894 }
static readonly RegistryKey LocalMachine
Definition Registry.cs:9
static CultureInfo CurrentUICulture
static string GetLocalizedNameByMuiNativeResource(string resource)

References System.Globalization.CultureInfo.CurrentUICulture, System.TimeZoneInfo.GetLocalizedNameByMuiNativeResource(), Internal.Win32.Registry.LocalMachine, and System.text.

Referenced by System.TimeZoneInfo.CreateUtcTimeZone().