Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Dates with different format are compared
Browse files Browse the repository at this point in the history
siteStartDate and siteEndDate are in different formats to be compared with startDate and endDate variables.
Test Case: 
Go to the form TimeLineForm.inc.php (index.php/conf/someschedconf/manager/timeline) and setup a conference schedule to siteStart equals 2014-6-1, siteEndDate  equals 2014-9-30, startDate equals 2014-09-12 and endDate equals 2014-09-13. Save it. Check the table 'sched_confs' and verify that all is Okay for siteEndDate value. It's 2014-9-30 as expected. Now, go back to the same schedule conference form and check again their value, it's 2014-09-14! That's the bug.
  • Loading branch information
dany-eudes committed Jun 24, 2014
1 parent 6775f9d commit db117ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/manager/form/TimelineForm.inc.php
Expand Up @@ -151,8 +151,8 @@ function initData() {
$schedConf =& Request::getSchedConf();

$this->_data = array(
'siteStartDate' => $schedConf->getStartDate(),
'siteEndDate' => $schedConf->getEndDate(),
'siteStartDate' => strtotime($schedConf->getStartDate()),
'siteEndDate' => strtotime($schedConf->getEndDate()),

'startDate' => $schedConf->getSetting('startDate'),
'endDate' => $schedConf->getSetting('endDate'),
Expand Down

0 comments on commit db117ec

Please sign in to comment.