Skip to content

Commit

Permalink
Doors close at 10 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnesselr committed Mar 27, 2024
1 parent 3a48139 commit 82b7cad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/External/WinDSX/Door.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ private function __construct(
public static function quickOpenHouse(): void
{
$doors = self::all()->filter(fn ($d) => $d->openDuringOpenHouseByDefault);
$elevenPM = now()->tz('America/Denver');
$elevenPM->hour = 23;
$elevenPM->minute = 00;
$tenPM = now()->tz('America/Denver');
$tenPM->hour = 22;
$tenPM->minute = 00;

event(new DoorControlUpdated($elevenPM, ...$doors->toArray()));
event(new DoorControlUpdated($tenPM, ...$doors->toArray()));
}

public static function quickDefaultDoors(): void
Expand Down

0 comments on commit 82b7cad

Please sign in to comment.