TimeZoneInfo changes when I change my timezone locally and deploy the code
<p>We use the following code to display the time - if it is EDT or EST. My Servers are in the East Coast. But the time zone changes when I change my local machine time zones and deploy the code. Why is it so? Please adivce. </p>

<pre><code>if (TimeZoneInfo.Local.IsDaylightSavingTime(DateTime.Now))
                {
                    foreach (string item in TimeZoneInfo.Local.DaylightName.Split(' '))
                    {
                        if(item.Length &gt; 0)
                        {
                            timeZoneAbbreviation.Append(item[0]);
                        }
                    }
                }
                else
                {
                    foreach (string item in TimeZoneInfo.Local.StandardName.Split(' '))
                    {
                        if(item.Length &gt; 0)
                        {
                            timeZoneAbbreviation.Append(item[0]);
                        }
                    }
                }
</code></pre>
