Subject: | GB_Early_May calculating incorrect |
Date: | Wed, 19 Apr 2017 10:17:48 +0100 |
To: | bug-Date-Calc [...] rt.cpan.org |
From: | Paul McKay <paul [...] roar-it.com> |
Hi,
The GB_Early_May subroutine thinks the bank holiday is the first Monday
after May 1st, when it is simply the 1st Monday in May.
The early may bank holiday in 2017 is on 1st May, but this subroutine is
returning the 8th May.
The subroutine simply needs to be
sub GB_Early_May {
my($year,$label) = @_;
return( Date::Calc::Nth_Weekday_of_Month_Year($year,5,1,1) );
}
Regards,
Paul
------------------------------
Paul McKay
Founder and Lead Developer
Tel: 01942 254905
Mob: 07923 419905
roar-it.com
------------------------------