aboutsummaryrefslogtreecommitdiff
path: root/model/Schedule.php
diff options
context:
space:
mode:
authorMaZderMind2018-05-12 11:26:14 +0200
committerMaZderMind2018-05-12 11:26:14 +0200
commit59f7c88ac3c8454eb0812dcb044e2854d9241001 (patch)
tree8688ac2112062252ed77961ed9289065c929041d /model/Schedule.php
parent2cf00ac475500f007bce90cf81d8d582208650c9 (diff)
parent622b1f030c5c931704b7e997918dad2dcfd48551 (diff)
Merge branch 'feature/talkinfo-in-json'
Diffstat (limited to '')
-rw-r--r--model/Schedule.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index ec4ddc7..4b5d25e 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -44,6 +44,15 @@ class Schedule
return $this->getConference()->getRoomIfExists( @$mapping[$scheduleRoom] );
}
+ public function getScheduleDisplayTime($basetime = null)
+ {
+ if(is_null($basetime)) {
+ $basetime = time();
+ }
+
+ return $basetime + $this->getSimulationOffset();
+ }
+
private function fetchSchedule()
{
$schedule = @file_get_contents($this->getScheduleCache());