CrmDateTime conversion Problems RRS feed

  • Question

  • Hi All,

    I am using CRM 4.0 and I have a server in Australia (+10:00 GMT). On that server I have a Plugin where I want to convert a DateTime Object into CrmDateTime. The Plugin is fired by an activity performed by a user who has Austrian time zone setting in CRM and is accessing the CRM page from Australia only.

    The Code that I am using for the conversion is as following:

    ausDateTime = new CrmDateTime(dateTimeObject.UserTime.ToString("s"));

    After conversion it seems that ausDateTime has +10:00 difference from the Australian local time. 

    According to CrmSDK documentation CrmDateTime can accept user time and ToString("s") will return local time only ? 
    Am I missing something here?

    Or there is some setting issues on Server only?


    Thanks in Advance

    Sunday, September 13, 2009 9:58 AM