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
825
Date (in string) bound to grid is displayed as the previous day
posted

jQuery Grid v 15.1.20151.1005

I'm binding the JSON results of an AJAX query to the grid as follows:

    $.ajax({
        type : 'GET',
        url : env_constants.DATASERVICES_URL + '/ar_invoices',
        data : params,
        dataType : 'json',
        success : function(invoiceRows) {
            $("#ar_invoices").igGrid("option", "dataSource", invoiceRows);
            $("#ar_invoices").igGrid( "resizeContainer" );
        },
        error : function(jqXHR, textStatus, errorThrown) {
            alert(jqXHR.responseText);
        }
    });

When I examine the first object of invoiceRows in the browser's debugger I see this field: { invoiceDate : "2015-07-25" }

However, the grid displays this date as "07/24/2015". Similarly, the date 8/1/2015 is displayed as "7/31/2015".

Could the grid be parsing this date format wrong? Perhaps applying a timezone adjustment to it?

Thanks,

Matt

Parents Reply Children
No Data