More in this section

Forums / Bugs & Issues / So....what do I do about your dates....

So....what do I do about your dates....

5 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    13 Jul 2012
    Link to this post
    Sitefinity and Kendo hate eachother when it comes to dates...SF wants to send the wierdo WCF format, Kendo expects a real date format.

    Is there a workaround outside of you guys fixing it to serialize with JSON.Net? :)...like short-term, can I somehow convert it?
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    18 Jul 2012
    Link to this post
    Hi Steve,

    I would have to consult my colleagues on this one, so it would be great if you could provide me with some additional details about what you're trying to achieve and where you get the date format from. Thank you for your cooperation. 

    All the best,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    18 Jul 2012
    Link to this post
    WCF date formatting isn't a valid JS date format and thus kendo can't parse it.  Just sucks to work with...

    http://www.hanselman.com/blog/OnTheNightmareThatIsJSONDatesPlusJSONNETAndASPNETWebAPI.aspx

    This is fixed in the latest WebAPI to use the ISO 8601 date standard by using JSON.Net internally.  So perhaps the "fix" if it doesn't bite you guys in the ass enough on the kendo conversion is wait until SF implements WebApi for its services?
  4. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    19 Jul 2012
    Link to this post
    Hi Steve,

    I consulted my colleagues, and it turns out that changing date format to json.net is a tough one, since json.net doesn't support type/property descriptors, which are used in Sitefinity pretty often. Our developers have tried to do that, but the json.net API is not compatible with the changes. As a workaround you can take a look at this blog post, where a similar problem is discussed:

    http://www.kendoui.com/forums/ui/grid/how-to-use-datasource-schema-kendogrid-columns-properties-with-complex-json-responses.aspx#1805916 

    Hope this helps!

    Kind regards,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Leanne
    Leanne avatar
    1 posts
    Registered:
    25 Jul 2012
    24 Jul 2012
    Link to this post
    hello,. i am glad to have also read this message
5 posts, 0 answered