Is it possible to set time zones on the server?

Recently, I had a program crash on the production server because the server lacked the time zone, so the following line made an exception:

TimeZoneInfo.ConvertTime(date, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById("Argentina Standard Time")) 

I found that he exported the timezone registry branch from the test server, importing it to the production server.

My question is: is it possible to selectively set time zones? How is it possible that he was absent?

+7
timezone c #
source share
1 answer

The timestamps and cultures that Microsoft sets in the registry are updated with standard patches. Therefore, depending on the version of the windows (including patch levels), some new cultures and time zones may be missing ... or if they are present, they may have outdated definitions. These things ... especially Time Zones .... tend to be updated regularly.

I have a lot of trouble in that they are stored in the registry and can only be added with an administrator account ... but this is for another forum.

+1
source share

All Articles