Date of birth is shown out by one day in day light saving
Bug #681385 reported by
Chris O'Connor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Ruslan Kabalin |
Bug Description
The date of birth is saved correctly in the database,
But when shown and the system is in daylight saving time (1 hour difference) it changes the display of the day back by 1 day
Code in lib/dml.php
$tsfield = "IF($field >= '1970-01-01', UNIX_TIMESTAMP(
Mahara version 1.3.2
Database Mysql
OS Debian
Changed in mahara: | |
milestone: | none → 1.4.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Chris,
Such problem may pop-up when locale setting (Country setting in Mahara option) does not match your current location. Anyway, I fixed it the most obvious way.