如何在安装Windows时指定默认TimeZone ...? [英] How to Get Default TimeZone Specified at Installation of Windows...?

查看:71
本文介绍了如何在安装Windows时指定默认TimeZone ...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得在安装Windows时指定的默认时区。目前如果我获得TimeZone,则有可能用户可以更改时区。但是我希望在vb.net应用程序中获得默认TimeZone,即使用户在时钟中更改时区...



任何人都有想法???



或如何获得Bios时区???

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 ???

推荐答案

简答:没有默认时区。



安装Windows时,系统会询问您应使用哪个时区(在设置时钟对话框中)。 Windows提供了一个预先设置,取决于安装媒体的本地化(例如,具有德语Windows版本的CET)。这个预设只是一个方便的选择,我不确定,但认为它没有存储。如果存储它,它可能在注册表中。



BIOS不知道时区。 RTC(硬件时钟)通常以UTC运行,操作系统将在查询当地时间时应用时区偏移。



当用户更改时区时,他通常希望为所选区域显示当地时间。那么为什么你会忽略用户的偏好并使用不同的时区?



如果你真的想使用其他时区,你可以在你的应用程序中提供配置选项。所以用户仍然可以控制。
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.


这篇关于如何在安装Windows时指定默认TimeZone ...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆