X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=994cdd981a735c4753aeedbedac8c46d08b1ea82;hb=5d197c9f7aa2ea796d86aa5473f93956b24cf1b7;hp=5c6c51af3a5a556100a6a62c4c6293d7cfcde68a;hpb=cce161221036760959ff1d0b7628a55942bf558a;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 5c6c51af..994cdd98 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -46,7 +46,7 @@ sub cldate my $t = shift; my ($sec,$min,$hour,$mday,$mon,$year) = gmtime((defined $t) ? $t : time); $year += 1900; - my $buf = sprintf "%02d-%s-%04d", $mday, $month[$mon], $year; + my $buf = sprintf "%2d-%s-%04d", $mday, $month[$mon], $year; return $buf; }