]> granicus.if.org Git - clang/commitdiff
Zero-pad the month and day fields in the output HTML directory.
authorTed Kremenek <kremenek@apple.com>
Wed, 14 May 2008 17:23:56 +0000 (17:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 14 May 2008 17:23:56 +0000 (17:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51109 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 4098990e4c2e90c287fd395eac7379ac1d639ebd..890f0145a5dc49bbfc2121e042f23c25914750e9 100755 (executable)
@@ -40,7 +40,7 @@ sub GetHTMLRunDir {
   my $day   = $CurrentTime[3];
   my $month = $CurrentTime[4] + 1;
   
-  my $DateString = "$year-$month-$day";
+  my $DateString = sprintf("%d-%02d-%02d", $year, $month, $day);
   
   # Determine the run number.