Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / April 2007

Tip: Looking for answers? Try searching our database.

Is TimeZone.StandardName localized

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 03 Apr 2007 06:22 GMT
In other words, if you are running on Chinese Windows and get
TimeZone.CurrentTimeZone.StandardName is it "Beijing Time" (or whatever it is
in English) or is it a series of Chinese characters?

We need to track/save/etc the timezone of users and if StandardName is
localized then the approach of storing the StandardName won't work.

Also, the registry value HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Time Zones\{name}\Index - is that index value guaranteed to
be the same for a given timezone on all versions of Windows? Ie, will
Afghanistan Standard Time have an index of 175 on all past and future
versions of Windows. Or does Microsoft change that value?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Walter Wang [MSFT] - 03 Apr 2007 12:53 GMT
Hi Dave,

It will return a string in Chinese characters.

For the timezone index question, please check my colleague Jeffrey's reply
in microsoft.public.win32.programmer.international. Thanks.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 03 Apr 2007 16:26 GMT
They don't make this easy.

How can I determine what the local TimeZone is without having every standard
name in every language in internal tables?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi Dave,
>
[quoted text clipped - 13 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 04 Apr 2007 03:36 GMT
Hi;

Can you look at your registry and tell me if it has the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time
Zones\China Standard Time where the last part is in English - "China Standard
Time"? Because if so, I could use that text. And to confirm, the keys under
it Display, Dlt, and Std are all in Chinese, not English - correct?

This is difficult but I don't want us to have a bug like Excel did for the
change in daylight savings time here in the US.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> They don't make this easy.
>
[quoted text clipped - 18 lines]
> >
> > This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 04 Apr 2007 09:05 GMT
Hi Dave,

Yes the registry key part is "China Standard Time" in English; the three
values "Std", "Display", "Dlt" are having Chinese characters.

I believe Timezone.StandardName is reading the registry and thus having the
Chinese characters.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.