Skip to content

Commit

Permalink
Fixed issue #8563: Token validfrom and validuntil validations fail : …
Browse files Browse the repository at this point in the history
…they don't use the time difference setting - patch by ledut
  • Loading branch information
c-schmitz committed Jan 22, 2014
1 parent 40ebd35 commit 6e3cb7e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions application/models/Token.php
Expand Up @@ -137,8 +137,7 @@ public function rules()

public function scopes()
{
$now = date('Y-m-d H:i:s');

$now = dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i:s", Yii::app()->getConfig("timeadjust"));
return array(
'incomplete' => array(
'condition' => "completed = 'N'"
Expand Down Expand Up @@ -168,7 +167,7 @@ public function summary()
public function tableName()
{
return '{{tokens_' . $this->id . '}}';
}
}
}

?>

0 comments on commit 6e3cb7e

Please sign in to comment.