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
2350
igGrid - EnableUTCDates not working as expected in 17.1
posted

Hello,

We are attempting up update from version 16.2 to 17.1. We are using a row edit dialog to edit existing DateTime data and the date is changing on submit.

The date we are sending on the server is 04/01/2013 at midnight. At first, we tried updating the row without changing any data. It appeared the date was changing, but we found that EnableUTCDates was set to TRUE for the DateTimeEditor, but was not set for the Grid. So we set this option to TRUE for both the grid and editor. This fixed the initial issue. Or second test involved updating the date itself. We changed the date from 4/1/2013 to 4/2/2013 and then back to 4/1/2013 using the datepicker. When we do this, the date is changing when it gets to the server.

In 16.2, the data looked like this when it got to the server:

{{
"Id": 59,
"StartDate": "2013-04-01T00:00:00Z"
}}

In 17.1, we are seeing the following date:

{{
"Id": 59,
"StartDate": "2013-04-01T16:00:00Z"
}}

What are the recommended settings for preventing a date from changing on submit to the server? We would expect this to work exactly the same as it did in 16.2 as we didn't have any problems with the dates in that version.

Thanks,

Paul

Parents Reply Children