使用Windows注册表跨所有Windows版本从XP获取当前时区信息 [英] To get the current time zone information from XP using Windows registry across all variants of windows

查看:270
本文介绍了使用Windows注册表跨所有Windows版本从XP获取当前时区信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题陈述:使用Windows注册表从XP的所有变体中获取XP的当前时区信息(表示所有语言,例如德语,西班牙语等,因为时区信息键也已针对这些语言进行了本地化,并且它们之间没有通用键).

实施说明: 我们正在使用英文版的TimeZone蜂巢中"Std"键的标准名称:

 Implementation Description: We are using the English version of TimeZone Standard Name from the key "Std" from the Hive:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \时区\< TimeZoneXX>作为Windows时区中Windows时区的唯一标识符,以将其映射到我们的客户端.

但适用于西班牙语/德语或其他任何本地化版本Windows版本中,这些条目似乎也已本地化,由于这些名称被翻译成本地语言,导致映射失败.

 But for Spanish/German or any other Localized version of Windows these entries seem to get localized too, leading to mapping failure because of these Names getting translated into the local language.

我们该如何解决?我们需要所有Windows变体中的时区唯一标识符.

 How do we solve this? We need a unique identifier for TimeZones across all Windows Variants.

推荐答案

即使我在Windows 7上也遇到了同样的问题也是..
Even i have the same problem on windows 7 as well..


这篇关于使用Windows注册表跨所有Windows版本从XP获取当前时区信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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