locked
CRM 2011 User Settings , Date Time , and Time Zones RRS feed

  • Question

  • This is a general question for anyone who has used the SystemUserSet/user_settings to determine the Time Zone offset of the CRM user.

    We are using the user_settings to determine the CRM User's offset for our custom html forms. CRM user_settings seems to be returning the incorrect TimeZoneDaylightDay and TimeZoneStandardDay.

    For example, a CRM user set to (GMT-5:00) Eastern Time (US & Canada).

    The ODATA Endpoint returns a TimeZoneDaylightMonth and TimeZoneDaylightDay of (March 2nd)

    https://<serverurl>/XRMServices/2011/OrganizationData.svc/SystemUserSet(guid'<userid>')/user_settings

    From what I understand the date for 2012 is (March 11th)

    http://www.timeanddate.com/worldclock/city.html?n=43


    The goal is to have our custom forms behave just like CRM forms to support international customers

    Any insight on this would be great. Thanks!

     

     

     

     

    Friday, January 6, 2012 4:42 PM

Answers

All replies

  • Hi Henry,

    I would try and rely on CRM doing the date/time translations wherever possible -  I've done a blog post about it which hopefully should help: http://www.develop1.net/public/post/Dynamics-CRM-DateTimes-the-last-word.aspx

    hth,

    Scott


    www.develop1.net
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"
    • Proposed as answer by Guangming Friday, January 6, 2012 8:12 PM
    • Marked as answer by Henry1975 Tuesday, January 17, 2012 1:51 PM
    Friday, January 6, 2012 8:01 PM
    Answerer
  • Thanks Scott for the link. After reading your post I kinda wish I found it before I started investigating the DateTime. Everything you mentioned in your post is helpful and we have used those options before, each with its cons.

    As our customer base starts to grow larger and larger we are trying to find out ways to keep one solution that will handle all customers from any Timezone and allow them to use the product as if they were using a CRM base Form. Our goal is to as much as possible mimic the actions of CRM base forms so that the integration is seamless and the users don't have to guess what will happen.

    Thanks for the help.

    Monday, January 16, 2012 7:18 PM
  • Hi Henry,

    Glad it helped.

    Could you mark the post as the answer to close this thread.

    Thanks,

    Scott


    www.develop1.net
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"
    Tuesday, January 17, 2012 8:42 AM
    Answerer