Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Looking for docs or example of using CTimeZoneApi

Doesn't appear to have any static methods (non shoe up in C# VS Express) or a constructor so not sure how to use the class.

Am looking to convert utc date to user tz date.

Thanks.
Martin Zardecki Send private email
Wednesday, June 17, 2009
 
 
Sorry about the docs -- the documentation for that part of the API hasn't been written yet.  You can access it through your instance of CPluginApi, and the specific method you want is CTZFromUTC ("Client Time Zone" from UTC):

DateTime utcdt = api.TimeZone.CTZFromUTC(ctzdt);
David Fullerton Send private email
Thursday, June 18, 2009
 
 
Exactly what I was looking for, thanks.
Martin Zardecki Send private email
Thursday, June 18, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz