CC-4961: Show linking

Made some progress on show editing
This commit is contained in:
denise 2013-03-12 18:01:12 -04:00
parent 438200425a
commit f9f4e4f1fb
4 changed files with 281 additions and 28 deletions

View file

@ -15,4 +15,29 @@
*/
class CcShowDays extends BaseCcShowDays {
public function isRepeating()
{
return $this->getDbRepeatType() != -1;
}
public function getUTCStartDateAndTime()
{
$dt = new DateTime(
"{$this->getDbFirstShow()} {$this->getDbStartTime()}",
new DateTimeZone($this->getDbTimezone())
);
$dt->setTimezone(new DateTimeZone("UTC"));
return $dt;
}
public function getLocalStartDateAndTime()
{
$dt = new DateTime(
"{$this->getDbFirstShow()} {$this->getDbStartTime()}",
new DateTimeZone($this->getDbTimezone())
);
return $dt;
}
} // CcShowDays