Skip to content

Commit

Permalink
Fixed issue #12041 : expire date of a survey deactivated manually is …
Browse files Browse the repository at this point in the history
…one day before the date of the day
  • Loading branch information
Marc Bruschera committed Jan 11, 2017
1 parent f43bb27 commit afc856f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -79,7 +79,7 @@ public function getLocalizedTitle()
public function expire($surveyId = null)
{
$dateTime = dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i:s", Yii::app()->getConfig('timeadjust'));
$dateTime = dateShift($dateTime, "Y-m-d H:i:s", '-1 day');
$dateTime = dateShift($dateTime, "Y-m-d H:i:s", '-1 minute');

if (!isset($surveyId))
{
Expand Down

0 comments on commit afc856f

Please sign in to comment.