#20241Change date after saving record
Description
When I try to edit date input field to “26-3-1989” it is being changed by BE to “25-3-1989” (after saving record).
Conf for the field:
‘birthday’ => array(
‘exclude’ => 1,
‘label’ => ‘Date of Birth’,
‘config’ => array(
‘type’ => ‘input’,
‘size’ => ‘10’,
‘eval’ => ‘date’,
‘checkbox’ => ‘‘
),
),
I have checked POST data being sent: browser sends “26-3-1989” and “606873600” (timestamp for “1989-03-26 04:00:00”) and in DB it comes as 606859200 (timestamp for “1989-03-25 23:00:00”). So somewhere in core it is changed to be 5 hours early.
(issue imported from #M10784)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.