Variable week converted to int

This commit is contained in:
L_DA 2021-01-02 15:48:21 +01:00
parent be422d0fef
commit 0aa3854495
7 changed files with 1 additions and 1 deletions

View file

@ -114,7 +114,7 @@ class timetable {
$this->monday->sub(new \DateInterval("P".($dayofweek-1)."D"));
}
$this->week = $this->monday->format("W");
$this->week = intval($this->monday->format("W"));
$this->lastday = new \DateTime($this->monday->format('Y-m-d\TH:i:sP'));
$this->lastday->add(new \DateInterval("P".($this->numdayweek-1)."D"));