Skip Menu |

This queue is for tickets about the Date-Holidays-AU CPAN distribution.

Report information
The Basics
Id: 92714
Status: resolved
Priority: 0/
Queue: Date-Holidays-AU

People
Owner: DDICK [...] cpan.org
Requestors: sampinar [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.11



Subject: Not showing additional holiday in year 2015
Date: Tue, 4 Feb 2014 18:20:56 +1100
To: bug-Date-Holidays-AU [...] rt.cpan.org
From: Sam Pinar <sampinar [...] gmail.com>
Hi, First off, great plugin, thank you. If you can give me your paypal details I would like to buy you a beer. I have found two issues with the plugin: 1) The additional holiday in 2015 isn't seen as a public holiday (28/12/2015) 2) 27/04/2015 is set a public holiday, but looking at NSW government websites that is not the case (Anzac day comes to a Saturday but not sure if the government declares a public holiday if Anzac day lies on a weekend; like christmas/boxing day/Australia day) : http://www.industrialrelations.nsw.gov.au/oirwww/NSW_public_holidays/NSW_Public_Holidays_2013-2015.page http://australia.gov.au/topics/australian-facts-and-figures/public-holidays#NSW Extract of public holidays using plugin: use DateTime; use Date::Holidays::AU qw / is_holiday holidays /; use 5.010; %params = ( year => '2015', state => 'NSW'); $holidays = holidays(%params); while (($key, $value) = each %$holidays) { say "$key => $value" } output of above program: 0406 => Easter Monday 0403 => Good Friday 0126 => Australia Day Holiday 0101 => New Years Day 1226 => Boxing Day 1005 => Labour Day 1227 => Boxing Day Holiday 0425 => Anzac Day Holiday 0404 => Easter Saturday 1225 => Christmas Day *0427 => Anzac Day Holiday* 0608 => Queens Birthday 0405 => Easter Sunday I am running script on Debian Wheezy 7.2 perl version is: 5.14.2 plugin version is: 0.10 I haven't tested year 2016, will test and let you know if any issues. -- Cheers, Sam Pinar e sampinar@gmail.com
Thanks for this. I've updated Date::Holidays::AU and uploaded it, Version 0.11 should hit CPAN shortly.
Subject: Re: [rt.cpan.org #92714] Not showing additional holiday in year 2015
Date: Wed, 5 Feb 2014 19:57:00 +1100
To: bug-Date-Holidays-AU [...] rt.cpan.org
From: Sam Pinar <sampinar [...] gmail.com>
Works like a charm. Thank you. Cheers Sam On Feb 4, 2014 9:58 PM, "David Dick via RT" < bug-Date-Holidays-AU@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=92714 > > > Thanks for this. I've updated Date::Holidays::AU and uploaded it, Version > 0.11 should hit CPAN shortly. >
On Wed Feb 05 19:57:09 2014, sampinar@gmail.com wrote: Show quoted text
> Works like a charm. Thank you. > > Cheers > > Sam > On Feb 4, 2014 9:58 PM, "David Dick via RT" < > bug-Date-Holidays-AU@rt.cpan.org> wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=92714 > > > > > Thanks for this. I've updated Date::Holidays::AU and uploaded it, Version > > 0.11 should hit CPAN shortly. > >