Skip to content

Commit

Permalink
Status Reactor: Report when someone in another time zone is off
Browse files Browse the repository at this point in the history
The use of `shift` was a mistake, it should have been `$shift`
  • Loading branch information
wolfsage committed Aug 31, 2021
1 parent 537308a commit 7c8746a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Synergy/Reactor/Status.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c8746a

Please sign in to comment.