diff options
| author | horus | 2020-10-10 04:10:12 +0200 |
|---|---|---|
| committer | horus | 2020-10-10 04:10:12 +0200 |
| commit | 0e92c9d4bcf6c3fb422493cd6b44eeced1219c06 (patch) | |
| tree | 73de3715a751d54d5a205d22ef35b31f1f379ba0 /app | |
| parent | 0edb438872796902d3e4d3c2eea791f6af1956aa (diff) | |
| download | zeitumstellung-0e92c9d4bcf6c3fb422493cd6b44eeced1219c06.tar.gz | |
bugfix
Diffstat (limited to 'app')
| -rw-r--r-- | app/Libraries/Zeitumstellung.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Libraries/Zeitumstellung.php b/app/Libraries/Zeitumstellung.php index 42b8415..10bc4cb 100644 --- a/app/Libraries/Zeitumstellung.php +++ b/app/Libraries/Zeitumstellung.php @@ -6,6 +6,8 @@ use Carbon\Carbon; class Zeitumstellung { + // Sommerzeit | Winterzeit + public $season; // full date of the next time change public $date; public $dateText; @@ -51,6 +53,8 @@ class Zeitumstellung { if ( $this->now->lte($this->tc_march) ){ # next time change is in march this year, (last sunday in march) + $this->season = "Sommerzeit"; + $this->date = $this->tc_march; $this->description = 'Die Uhr wird von 2 Uhr auf 3 Uhr vorgestellt, sodass wir 1 Stunde weniger schlafen.'; $this->descriptionHTML = 'Die Uhr wird von <b>2 Uhr auf 3 Uhr vorgestellt</b>, sodass wir <b>1 Stunde weniger</b> schlafen.'; @@ -67,6 +71,8 @@ class Zeitumstellung { } else { # next time change is in october this year, (last sunday in october) + $this->season = "Winterzeit"; + $this->date = $this->tc_oct; $this->description = 'Die Uhr wird von 3 Uhr auf 2 Uhr zurückgestellt, sodass wir 1 Stunde länger schlafen.'; $this->descriptionHTML = 'Die Uhr wird von <b>3 Uhr auf 2 Uhr zurückgestellt</b>, sodass wir <b>1 Stunde länger</b> schlafen.'; |
