diff --git a/site/plugins/buy/src/Sale.php b/site/plugins/buy/src/Sale.php index f0e8881b3..d5e5bd24b 100644 --- a/site/plugins/buy/src/Sale.php +++ b/site/plugins/buy/src/Sale.php @@ -20,9 +20,10 @@ public function __construct() // same timestamp to avoid off-by-one errors in the second of a date change static::$time ??= time(); - // calculate timestamps in UTC, even if the server uses a different timezone + // calculate timestamps in UTC, + // even if the server uses a different timezone $this->start = strtotime(($options['start'] ?? '1970-01-01') . ' 00:00Z'); - $this->end = strtotime(($options['end'] ?? '9999-01-01') . ' 24:00Z'); + $this->end = strtotime(($options['end'] ?? '1970-01-01') . ' 24:00Z'); $this->discount = $options['discount'] ?? 0; }