diff --git a/modules/privatesales/Sale.php b/modules/privatesales/Sale.php index 3fd22d83..e4c63c6c 100755 --- a/modules/privatesales/Sale.php +++ b/modules/privatesales/Sale.php @@ -73,14 +73,14 @@ class Sale { } public function isFinished($check_enabled=FALSE) { - if(($check_enabled === TRUE && $this->enabled || $check_enabled === FALSE) && strtotime($this->date_end) < mktime()) { + if(($check_enabled === TRUE && $this->enabled || $check_enabled === FALSE) && strtotime($this->date_end) < time()) { return TRUE; } return FALSE; } public function isStarted($check_enabled=FALSE) { - if(($check_enabled === TRUE && $this->enabled || $check_enabled === FALSE) && strtotime($this->date_start) < mktime()) { + if(($check_enabled === TRUE && $this->enabled || $check_enabled === FALSE) && strtotime($this->date_start) < time()) { return TRUE; } return FALSE;