Click here to Skip to main content
15,904,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get Default Timezone Which is Specified at Installation of Windows.. As Currently if i get TimeZone there is chances of user can changed the time zone. but i want to get Default TimeZone in vb.net Application even after user changes timezone in Clock ...

Any One Have Idea???

Or how to get Bios Time Zone ???
Posted

1 solution

The short answer: There is no default time zone.

When installing Windows, you will be asked which time zone should be used (in the set clock dialog). Windows provides a pre-setting here that depends on the localisation of the install media (e.g. CET with German Windows versions). This pre-setting is just a convenience option and I'm not sure but think that it is not stored. If it is stored, it might be in the registry.

The BIOS did not know time zones. The RTC (hardware clock) is usually running at UTC and the operating system will apply time zone offsets when querying the local time.

When a user has changed the time zone, he usually wants local time to be shown for the selected zone. So why would you ignore the user's preferences and use a different timezone?

If you really want to use other time zones, you can provide a configuration option in your application. So the user has still control.
 
Share this answer
 

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