From 6580da4755cf98aa9b0c32186536e80d7dd41f90 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 6 Nov 2009 04:12:13 +0000 Subject: [PATCH] NewNighlytTest: Fix timestamp format to actually make sense (it was missing the hour). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86229 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/NewNightlyTest.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index f74711a44d0..62054edf879 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -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()); ############################################################## #