- Fixed problem where update-holidays.pl did not use the YYYYMMDD date foramt.
This commit is contained in:
Paul Beckingham 2012-02-26 17:05:16 -05:00
parent 824cba7152
commit 8af872e289
18 changed files with 481 additions and 477 deletions

View file

@ -165,6 +165,9 @@ for my $holiday (split /\n/ms, $data)
{
my $parsed = from_json ($holiday);
# Change date format from YYYY-MM-DD to YYYYMMDD.
$parsed->{'date'} =~ s/-//g;
if (@regions == 0 ||
(@regions > 0 && ($parsed->{'region'} eq '' ||
exists $region_hash{$parsed->{'region'}})))