← Back to team overview

mahara-contributors team mailing list archive

[Bug 681385] Re: Date of birth is shown out by one day in day light saving

 

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.


** Changed in: mahara
       Status: New => Fix Committed

** Changed in: mahara
     Assignee: (unassigned) => Ruslan Kabalin (ruslan-kabalin)

** Changed in: mahara
   Importance: Undecided => Low

-- 
Date of birth is shown out by one day in day light saving
https://bugs.launchpad.net/bugs/681385
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Fix Committed

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





References