CC-5627 : Check all Application_Common_DateHelper calculations that use timezone.
This commit is contained in:
parent
a45235d39b
commit
7a51b8d2ad
airtime_mvc/application/models
|
@ -730,21 +730,6 @@ SQL;
|
||||||
return ($query !== false) ? $query : null;
|
return ($query !== false) ? $query : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getShowEndGapTime()
|
|
||||||
{
|
|
||||||
$showEnd = $this->getShowInstanceEnd();
|
|
||||||
$lastItemEnd = $this->getLastAudioItemEnd();
|
|
||||||
|
|
||||||
if (is_null($lastItemEnd)) {
|
|
||||||
$lastItemEnd = $this->getShowInstanceStart();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$diff = strtotime($showEnd) - strtotime($lastItemEnd);
|
|
||||||
|
|
||||||
return ($diff < 0) ? 0 : $diff;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function GetLastShowInstance($p_timeNow)
|
public static function GetLastShowInstance($p_timeNow)
|
||||||
{
|
{
|
||||||
$sql = <<<SQL
|
$sql = <<<SQL
|
||||||
|
|
Loading…
Reference in New Issue