From 2b16d7a0833b0217ca775cda0fa3654c156a2cba Mon Sep 17 00:00:00 2001 From: Mason James Date: Wed, 2 Jan 2008 13:01:57 -0600 Subject: [PATCH] padding Add_Delta_Days date, again. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- serials/subscription-detail.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index 170273455b..0e87194dbc 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -74,7 +74,8 @@ 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($year,1,1, $count - 1);#Date_NthDayOfYear($year,$count); - my $output = "$y-$m-$d"; + # padding Add_Delta_Days; + my $output = sprintf("%04d-%02d-%02d",$y , $m, $d ); $weekarrayjs .= "'Wk $wkno: ".format_date($output)."',"; $wkno++; } -- 2.39.5