NewNighlytTest: Fix timestamp format to actually make sense (it was missing the hour).
authorDaniel Dunbar <daniel@zuster.org>
Fri, 6 Nov 2009 04:12:13 +0000 (04:12 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 6 Nov 2009 04:12:13 +0000 (04:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86229 91177308-0d34-0410-b5e6-96231b3b80d8

utils/NewNightlyTest.pl

index f74711a44d0083e5c6fd7a029d48d46c5a47ad3d..62054edf87917bb0f6d8259486f7ba2b7dde8187 100755 (executable)
@@ -122,8 +122,9 @@ my $WebDir     = $ENV{'WEBDIR'};
 # Calculate the date prefix...
 #
 ##############################################################
+use POSIX;
 @TIME = localtime;
-my $DATE = sprintf "%4d-%02d-%02d_%02d-%02d", $TIME[5]+1900, $TIME[4]+1, $TIME[3], $TIME[1], $TIME[0];
+my $DATE = strftime("%Y-%m-%d_%H-%M-%S", localtime());
 
 ##############################################################
 #