Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2945
System.TimeZoneInfo from Infragistics.Win.TimeZoneInfo
posted

It seems I can load a System.TimeZoneInfo value into an UltraTimeZoneEditor.  However, the editor stores the value as it's own version of TimeZoneInfo, and there doesn't seem to be a clear way to map back. 

Infragistics.Win.TimeZoneInfo has a StandardName property to uniquely identify the zone, and System.TimeZoneInfo has an Id property.  But unfortunately (and goodness knows why!) these do not always match.

So is it possible to get back to the System.TimeZoneInfo from the UltraTimeZoneEditor?  I'd just rather use the standard .Net object around the application than having to use the Infragistics one, otherwise it means adding extra DLLs to apps that shouldn't require them.

Thanks.

Parents
No Data
Reply
  • 4940
    Offline posted

    System.TimeZoneInfo has a StandardName property as well that it pulls from the registry just like the UltraTimeZoneEditor. If you take a look at the snippet in this thread, you might get a few ideas of how to use to map it in either direction.

    By the way, if you look up the documentation for System.TimeZoneInfo on MSDN it states that the Id property and StandardName will usually be identical, but not always.

Children