I have a:
- Field in my store as date with dateFormat set to 'Y-m-d'
- Column in my grid (datecolumn) - format set to 'Y-m-d'
- Editor on Column (datefield editor) - format set to 'Y-m-d'
- Postgresql Table with a date column (Note, not a timestamp or timestamptz, but date)
I have data that comes into the store from Postgresql like: { mydatefield: "2021-07-30" }
Now, the date do dispay is 100% correct in the grid. Problem comes in when I select a new date, through the datefield editor, let's say
2021-07-31
The moment it saves back to the server it passes: mydatefield: '2021-07-30T22:00:00.000Z'
and the server saves it wrong as '2021-07-30' and the grid refreshes back to 2021-07-30.
We are on South African Standard Time (+2) Do not know if it something to do with Daylight Saving
So, to recap. It does not matter what date I select, it keeps saving a day less than the day I selected.