[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r15539: ensure the date is either proper or listed as unknown. (website/trunk)



Author: ioerror
Date: 2008-06-28 01:27:16 -0400 (Sat, 28 Jun 2008)
New Revision: 15539

Modified:
   website/trunk/update-mirrors.pl
Log:
ensure the date is either proper or listed as unknown.


Modified: website/trunk/update-mirrors.pl
===================================================================
--- website/trunk/update-mirrors.pl	2008-06-28 05:06:05 UTC (rev 15538)
+++ website/trunk/update-mirrors.pl	2008-06-28 05:27:16 UTC (rev 15539)
@@ -616,8 +616,12 @@
 # This is storted from last known recent update to unknown update times
 foreach my $server ( sort { $m{$b}{'updateDate'} <=> $m{$a}{'updateDate'}} keys %m ) {
 
-     my $time = ctime($m{$server}{'updateDate'});
-     chomp($time);
+     my $time;
+     if( "$m{$server}{'updateDate'}" ne "Unknown") {
+        $time = ctime($m{$server}{'updateDate'});
+        chomp($time);
+     } else { $time = "Unknown"; }
+
 print OUT <<"END";
      \n<tr>\n
          <td>$m{$server}{'isoCC'}</td>\n