aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-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());