From a02ef57b4cfff7ef8f89a68f39edb6ba75c105e9 Mon Sep 17 00:00:00 2001 From: bob_lyon Date: Tue, 19 Dec 2006 03:34:14 +0000 Subject: [PATCH] Fixing up problems with the new date subroutines --- bull/subscription-add.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bull/subscription-add.pl b/bull/subscription-add.pl index 4cbfe5d74e..b91bfc28b7 100755 --- a/bull/subscription-add.pl +++ b/bull/subscription-add.pl @@ -12,7 +12,7 @@ use C4::Interface::CGI::Output; use C4::Context; use HTML::Template; use C4::Bull; -use Date::Calc; +use Date::Calc qw(:all); my $query = new CGI; my $op = $query->param('op'); @@ -39,8 +39,8 @@ my ($template, $loggedinuser, $cookie) my $weekarrayjs=''; my $count = 0; my ($year, $month, $day) = Date::Calc::Today; -my $firstday = Day_of_Year($month,$day,$year); -my $wkno = Week_of_Year($month,$day,$year,1); # week starting monday +my $firstday = Day_of_Year($year,$month,$day); +my $wkno = Week_of_Year($year,$month,$day); # week starting monday my $weekno = $wkno; for(my $i=$firstday;$i<($firstday+365);$i=$i+7){ $count = $i;