Adapt to production
This commit is contained in:
parent
791a522579
commit
213d80e15b
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
locale_set_default('de_DE');
|
||||
$config = require_once './config.php';
|
||||
$START_DATE = $config['start_date'];
|
||||
$EVENTS = $config['events'];
|
||||
|
|
@ -45,7 +46,7 @@ function print_month($start) {
|
|||
<caption><h3><?= $month_name ?></caption>
|
||||
<tr><?php foreach ($DAYS_OF_WEEK as $day) { echo "<th>$day</th>"; }?></tr>
|
||||
<?php
|
||||
$date = DateTime::createFromInterface($week_start);
|
||||
$date = DateTime::createFromImmutable($week_start);
|
||||
while ($date->diff($month_end)->invert == 0) {
|
||||
echo "<tr>";
|
||||
for ($n = 0; $n < 7; ++$n) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue