Bug #20241
closedChange date after saving record
0%
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)
Updated by Vladimir Podkovanov over 15 years ago
This issue could be closed as in #20389 I've explained more details on date / time mishandling including desribed here.
Updated by Chris topher over 14 years ago
Hi Vladimir,
as requested, I will close this issue.
Please tell us in #20389, how we can reproduce this problem.