aboutsummaryrefslogtreecommitdiffstats
path: root/mga-treasurer
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-12 14:58:16 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-12 14:58:16 +0000
commitd880bb65414c7f619abac6215eedbbdd75e5cf84 (patch)
tree25f229fdf7a8833276b32acc81945d61a681d324 /mga-treasurer
parentbda0a251ee48cde01f96ffeaa9e9d4fe2a836587 (diff)
downloadmgatres-d880bb65414c7f619abac6215eedbbdd75e5cf84.tar
mgatres-d880bb65414c7f619abac6215eedbbdd75e5cf84.tar.gz
mgatres-d880bb65414c7f619abac6215eedbbdd75e5cf84.tar.bz2
mgatres-d880bb65414c7f619abac6215eedbbdd75e5cf84.tar.xz
mgatres-d880bb65414c7f619abac6215eedbbdd75e5cf84.zip
mga-treasurer: use two digits for month
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8210 5b7c3c08-40e5-403b-9995-ace06908e4af
Diffstat (limited to 'mga-treasurer')
-rwxr-xr-xmga-treasurer2
1 files changed, 1 insertions, 1 deletions
diff --git a/mga-treasurer b/mga-treasurer
index bc06e3c..1efe831 100755
--- a/mga-treasurer
+++ b/mga-treasurer
@@ -68,7 +68,7 @@ sub donations_infos {
);
foreach my $don (@{$res{donations}}) {
my $dt = DateTime->from_epoch(epoch => $don->{date});
- my $month = $dt->year . '-' . $dt->month;
+ my $month = $dt->year . '-' . sprintf("%02d", $dt->month);
my $year = $dt->year;
push @{$res{by_month}->{$month}->{donations}}, $don;
$res{by_month}->{$month}->{year} = $year;