1. fixed problem with missing DXDebug in DXProt.
[spider.git] / perl / DXUtil.pm
index 5c6c51af3a5a556100a6a62c4c6293d7cfcde68a..994cdd981a735c4753aeedbedac8c46d08b1ea82 100644 (file)
@@ -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;
 }