Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to install time zones on a server?

Tags:

timezone

c#

I recently had a program fail in a production server because the server was missing a time zone, so the following line threw an exception:

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

I fixed it exporting the time zone registry branch from a test server, importing it to the production server.

My question is, is it possible to install time zones selectively? How is it possible that one was missing?

like image 398
juan Avatar asked Jan 13 '10 17:01

juan


People also ask

How do I timezone my server?

Under General Settings, click on System Time. Change the desired timezone from the drop-down menu. Then click OK. Reboot your server.

How do I change the date on my server?

Changing Date, Time, and Time Zone in Server 2016Step 1: Click on the time (as shown in figure) located in bottom right corner of task bar. Step 2: Click on Date and time settings. Step 3: Click on Change to change date and time. Step 4: Adjust the time and click Change.


1 Answers

The timezones and cultures that Microsoft installs in the registry are updated by standard patches. So depending on the version of windows (including patch levels) Some newer cultures and time zones may not be present...or if they are present they may have outdated definitions. These thing...particularly Time Zones....have a tendency to update fairly regularly.

I have a lot of pent up anger about the fact that they are stored in the registry and can only be added to with a admin account...but that is for another forum.

like image 123
ryber Avatar answered Oct 10 '22 23:10

ryber