DatePicker not updating or incorrectly updating field
Having a weird issue with the DatePicker field which seems to have popped up in the last few weeks or so (project is still in development so not sure exactly when it started happening). DatePicker was working previously.
Running 3.0.1 and I have ran
Two issues appear to be happening.
1) If I enter a date into the field then field saves as the previous day. Example, if I enter "May 15, 2023" the payload sent to twill submits "2023-05-15" but the value saved into the database is "2023-05-14"
2) If I select a date from the DatePicker popup then the payload is not updated unless I hit the "enter key". Removing focus from the field does not update the payload.
The module has the following migrations:
(These are not publish dates, they meant to show the start and end dates of an event.)
The model casts these fields to date and also includes
The controller uses
Running 3.0.1 and I have ran
twill:update Two issues appear to be happening.
1) If I enter a date into the field then field saves as the previous day. Example, if I enter "May 15, 2023" the payload sent to twill submits "2023-05-15" but the value saved into the database is "2023-05-14"
2) If I select a date from the DatePicker popup then the payload is not updated unless I hit the "enter key". Removing focus from the field does not update the payload.
The module has the following migrations:
(These are not publish dates, they meant to show the start and end dates of an event.)
The model casts these fields to date and also includes
$dates as the docs seem to suggest. Although I'm pretty sure having both is redundant.The controller uses
getForm method and adds fields with the following