diff --git a/schedule/ics.php b/schedule/ics.php index 581daa9..f715547 100644 --- a/schedule/ics.php +++ b/schedule/ics.php @@ -1,35 +1,50 @@ diff --git a/schedule/schedule.php b/schedule/schedule.php index 6a14f7e..8912041 100644 --- a/schedule/schedule.php +++ b/schedule/schedule.php @@ -12,8 +12,11 @@ $context = stream_context_create([ ] ]); -$from = gmdate("Y-m-d\TH:i:s\Z", strtotime("now + 1 day")); -$to = gmdate("Y-m-d\TH:i:s\Z", strtotime("now + 8 days")); +// allow ics.php to overwrite $from and $to +if (!isset($from,$to)) { + $from = gmdate("Y-m-d\TH:i:s\Z", strtotime("now + 1 day")); + $to = gmdate("Y-m-d\TH:i:s\Z", strtotime("now + 8 days")); +} $schedule = json_decode( file_get_contents(