summaryrefslogtreecommitdiff
path: root/app/Libraries/Zeitumstellung.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Libraries/Zeitumstellung.php')
-rw-r--r--app/Libraries/Zeitumstellung.php6
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.';