| @@ 85-87 (lines=3) @@ | ||
| 82 | $day_of_the_week = $this->getWeekDay($this->checkin_day); |
|
| 83 | ||
| 84 | // Date range constraint variables. |
|
| 85 | if ($this->start_date !== NULL && $this->start_date != (new \DateTime('1970-01-01'))) { |
|
| 86 | $start_date = $this->start_date->format('Y-m-d'); |
|
| 87 | } |
|
| 88 | if ($this->end_date !== NULL && $this->end_date != (new \DateTime('2999-12-31'))) { |
|
| 89 | $end_date = $this->end_date->format('Y-m-d'); |
|
| 90 | } |
|
| @@ 120-122 (lines=3) @@ | ||
| 117 | $end_date = FALSE; |
|
| 118 | ||
| 119 | // Date range constraint variables. |
|
| 120 | if ($this->start_date !== NULL && $this->start_date != (new \DateTime('1970-01-01'))) { |
|
| 121 | $start_date = $this->start_date->format('Y-m-d'); |
|
| 122 | } |
|
| 123 | if ($this->end_date !== NULL && $this->end_date != (new \DateTime('2999-12-31'))) { |
|
| 124 | $end_date = $this->end_date->format('Y-m-d'); |
|
| 125 | } |
|