From 7c8746a63b068d9b4d3f474d4681eaa38c166435 Mon Sep 17 00:00:00 2001 From: Matthew Horsfall Date: Mon, 30 Aug 2021 12:07:07 -0400 Subject: [PATCH] Status Reactor: Report when someone in another time zone is off The use of `shift` was a mistake, it should have been `$shift` --- lib/Synergy/Reactor/Status.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Synergy/Reactor/Status.pm b/lib/Synergy/Reactor/Status.pm index 65bac8a5..c0ea9cc6 100644 --- a/lib/Synergy/Reactor/Status.pm +++ b/lib/Synergy/Reactor/Status.pm @@ -188,7 +188,7 @@ sub _business_hours_status ($self, $event, $user) { my $time = $now->format_cldr('HH:mm'); if ($time lt $today_hrs->{start} or $time gt $today_hrs->{end}) { - if (!shift) { + if (! $shift) { return sprintf "It's outside of %s normal business hours, *and* %s off today.", $user->their, $user->theyre; }