Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Please be informed that the Casablanca time zone has the DST changes 4 times a year, ensure this is automated from your end.

What I have tried:

Windows 10 or Windows 8.1, right-click or tap-and-hold the Start button and then choose Run. Prior to Windows 8.1, Run is most easily available from the Apps screen.

In Windows 7 or Windows Vista, click on Start.

In Windows XP, click on the Start button and then click Run....

Tip: See What Version of Windows Do I Have? if you're not sure.
In the search box or Run window, type the following:
regedit
and then press Enter.

Note: Depending on your version of Windows, and how it's configured, you may see a User Account Control dialog box where you'll need to confirm that you want to open Registry Editor.
Registry Editor will open.

If you've used Registry Editor before, it'll open up to the same location you were working in last time. If that happens, and you don't want to work with the keys or values at that location, just continue to minimize the registry keys until you've reached the top level, listing the various registry hives.

Tip: You can minimize or expand registry keys by clicking or tapping the small > icon next to the key. In Windows XP, the + icon is used instead.

You can now make whatever changes you need to make to the registry. See
How to Add, Change, & Delete Registry Keys & Values for instructions and other tips to help you safely edit the registry.

Important: Considering the impact that the registry has on your Windows-based computer, I highly recommend that you back up the registry, either the whole thing or even just the areas you're working in, before you do anything. See How to Back up the Windows Registry for help
Posted
Updated 18-Jan-18 23:47pm
Comments
Richard Deeming 19-Jan-18 10:54am    
Was there supposed to be a question buried somewhere in that set of instructions?

1 solution

Just ensure that timezone related updates are installed (usually by enabling automatic updates).

Windows 10
Important Windows updates the time zones in the registry when time zones are available and updates are downloaded. Because time zones can change, use the tzutil command-line tool in Windows to verify the time zone.

Older Windows versions
Ensure that time zone updates are automatically installed with Windows Update or do it manually. Doing it manually might be tricky because you have to check for TZ updates and find the corresponding version for your Windows version. Examples for 2016 and 2017:
June 2016 DST and time zone update for Windows[^]
2017 - Morocco Ramadan DST changes[^]
 
Share this answer
 
Comments
papun sahoo 23-Jan-18 3:39am    
I need the index value for morocco/Casablanca time zone on windows registry.Please help on this.
Jochen Arndt 23-Jan-18 4:41am    
Can be easily found with a web research:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Morocco Standard Time

It is recommended to use Windows API functions to read such data instead of retrieving from the registry. The API functions will still work when data are moved or the format changes.

This blog contains useful information:
Exploring Windows Time Zones with System.TimeZoneInfo [Josh Free]
papun sahoo 30-Jan-18 2:18am    
Can you provide the exact index value for Morocco time zone?
Jochen Arndt 30-Jan-18 2:53am    
I already provided the registry key which contains the time zone values and a subkey with the dynamic DST times for each year.

Use regedit.exe to have a look on it.
papun sahoo 30-Jan-18 4:36am    
I tried,that is not valid index value,Because i need 4DST time zone index valve to display time as per Current Country Day light Saving.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900