c# - How to get correct timezone for client -


To get the user's correct time zone, I first get offset using Javascript: -

< Pre> off offset = new date (). GetTimezoneOffset ();

and after that I apply the value to server side variables.

Where do I use the timezone: -

  ReadOnlyCollection & lt; TimeZoneInfo & gt; Time zone = TimezoneInfo GetSystemTimJohn (); Foreign currency (Time ZoneIndo Time Zone in Time Zone) {If (Time Zone. BASUITIC Offset. Ecloss (Offset)) {Return Time Zone.ED; }}  

Now the problem is that: -

  • There are multiple timezones with the same offset, I use the time zone for the user How can i separate
  • Whether the light saving mode of day (-60 and 0) is allowed for GMT Dubulin, Edigur, Edson and London's timezones, there are two offsets, how can I get the right offset .

No idea how can I get the right time zone and offset? Which are familiar with the timezone (I thought there might be a unique offset in a given time zone, but it appears to be incorrect). But I was posted on 4guysfromrolla about timezone calculation and regeneration - it is helpful.

Dick


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -