Print Page | Close Window

Saving time zone setting

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=4943
Printed Date: 22 November 2024 at 3:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Saving time zone setting
Posted By: nighthawk
Subject: Saving time zone setting
Date Posted: 31 August 2006 at 9:49pm
What is the best way to save the time zone settings so that they stick each time the program is run.  I need to be able to save some value that represents the time zone.  Is it safe to use the name as a unique identifier or is there some other method that would work better?  I would also need to be able to quickly get a CalendarTimeZone object based on the unique identifier.  Is this possible without looping through all the time zones?



Replies:
Posted By: sserge
Date Posted: 01 September 2006 at 6:53am
Hi,

We do use CalendarTimeZone.StandardName member as unique identifier (compare no case).

To find -- just iterate CalendarTimeZones. This is quite fast operation (not critical for performance).

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net