CC-4961: Show linking
Made some progress on show editing
This commit is contained in:
parent
438200425a
commit
f9f4e4f1fb
4 changed files with 281 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue