Daylight Savings Bug in MVC Model Binding?

Posted by: matth on 25 October 2018, 1:19 am EST

  • Posted 25 October 2018, 1:19 am EST

    Is there a bug in the way that the MVC component is rendering dates with daylight savings? If I use the MVC code to create a Flex Grid where I bind the model, then the day is one day off. If I create the grid clientside js with wijmo and parse the date, it shows correctly. What to do? This is on 2018v3, days after 11/4 show day prior.

  • Posted 25 October 2018, 11:02 pm EST

    Hi Matthew,

    We are sorry, we are unable to replicate the issue at our end with build version 4.0.20182.164 and Win 10+ Visual Studio configuration.

    Please refer to the attached sample that is used to replicate the issue. If the issue persists, please modify the sample and let us know the steps to replicate the issue.

    ~Manish

    FlexGrid_Date_Difference.zip

  • Posted 28 October 2018, 10:20 am EST

    SampleData.zip

    I have tweaked your sample data model to report all hire dates like this and then you can see the error on the MVC control, not the JS.

    Hired = new DateTime(2018,11,5,0,0,0,0),
    

    Please look again.

  • Posted 29 October 2018, 7:23 pm EST

    Hi Matthew,

    Thanks for providing the additional information.

    The issue has been reported to the development team with internal tracking id 350738. However, the issue can be avoided by providing the UTC DateTime to Model as given below.

    Hired = new DateTime(2018,11,5,0,0,0,0).ToUniversalTime()
    

    Please try this and the issue should be resolved. We will let you know as we get any detail on this.

    ~Manish

  • Posted 14 December 2018, 6:16 pm EST

    You may try this code

    using C1.Win.C1FlexGrid;

    namespace C1FlexCalendar

    {

    [LicenseProvider(typeof(System.ComponentModel.LicenseProvider))]

    public partial class C1FlexCalendar : C1FlexGrid

    {



    }

    }

  • Posted 17 December 2018, 9:22 pm EST

    Hi Rahil,

    It seems the codeshare is above is posted here by mistake since it is related to Licensing.

    Please let us know if you have some query related to this.

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels