From 0e0586c264359df690caaf2ca49be073afb264a7 Mon Sep 17 00:00:00 2001 From: Mason James Date: Wed, 2 Jan 2008 13:01:56 -0600 Subject: [PATCH] BUGFIX padding add_delta_days() date Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- serials/subscription-add.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index 1dda18e002..23c40da958 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -61,7 +61,10 @@ for(my $i=$firstday;$i<($firstday+365);$i=$i+7){ if($wkno > 52){$year++; $wkno=1;} if($count>365){$count=$i-365;} my ($y,$m,$d) = Add_Delta_Days(1,1,1,$i - 1); - my $output = "$y-$m-$d"; + + #BUGFIX padding add_delta_days() date + my $output = sprintf("%04d-%02d-%02d",$y , $m, $d ); + $weekarrayjs .= "'Wk $wkno: ".format_date($output)."',"; $wkno++; } -- 2.39.5