Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Date column in grid adding one hour
posted

We have a date column displayed in a igGrid which is bound to a DateTime property in the model.  One hour is being added to certain date values based on Daylight Savings. How to disable this adjustment. We want to display the values that is returned by the database as is. For example 12/30/2016 10:45:11 displays as 12/30/2016 11:45:11.

Parents
  • 17590
    Offline posted

    Hello Shashikumar,


    Thank you for posting in our community. 

    Please try setting the enableUTCDates option to true. This option enables formatting of the dates as UTC.

    //Initialize
    $(".selector").igGrid({
        enableUTCDates : true
    });


    Try this approach on your side and let me know what is the result.
    Additionally, a topic about Using IgniteUI controls in different time zones can be found online:
    https://www.igniteui.com/help/using-igniteui-controls-in-different-time-zones
    Do not hesitate to contact me if you have any additional questions regarding this matter.

Reply Children