mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #04833
[Bug 681385] Re: Date of birth is shown out by one day in day light saving
** Changed in: mahara
Milestone: None => 1.4.0
** Changed in: mahara
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/681385
Title:
Date of birth is shown out by one day in day light saving
Status in Mahara ePortfolio:
Fix Released
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($field), TIMESTAMPDIFF(SECOND, '1970-01-01', $field))";
Mahara version 1.3.2
Database Mysql
OS Debian
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/681385/+subscriptions
References