Skip to content

Commit

Permalink
[Bexley] Update Christmas concessionary day.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Oct 19, 2023
1 parent 3ad253a commit e009fe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/Cobrand/Bexley.pm
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ sub _is_out_of_hours {
return 1 if $time->hour < 8;
return 1 if $time->wday == 1 || $time->wday == 7;
return 1 if FixMyStreet::Cobrand::UK::is_public_holiday();
return 1 if DateTime->now->ymd eq '2022-12-28';
return 1 if DateTime->now->ymd eq '2023-12-27';
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions t/cobrand/bexley.t
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ EOF
is $cobrand->_is_out_of_hours(), 1, 'out of hours at weekends';
set_fixed_time('2019-12-25T12:00:00Z');
is $cobrand->_is_out_of_hours(), 1, 'out of hours on bank holiday';
set_fixed_time('2022-12-28T12:00:00Z');
is $cobrand->_is_out_of_hours(), 1, 'out of hours on special day 2022';
set_fixed_time('2023-12-27T12:00:00Z');
is $cobrand->_is_out_of_hours(), 1, 'out of hours on special day 2023';
};


Expand Down

0 comments on commit e009fe1

Please sign in to comment.