From 3312a780282e5920f48625bc7b1417d5eb390f53 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Fri, 6 Feb 2015 09:51:18 +0100 Subject: [PATCH] fix unknown date handfling in "Overview" --- index | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/index b/index index dc8c823..26dc3c6 100755 --- a/index +++ b/index @@ -297,9 +297,16 @@ then then (( maxtimestamp < prevtimestamp )) \ && maxtimestamp=$prevtimestamp - cat <<-EOHTML - $(date +%Y-%m-%d -d @$maxtimestamp) - EOHTML + if (( maxtimestamp )) + then + cat <<-EOHTML + $(date +%Y-%m-%d -d @$maxtimestamp) + EOHTML + else + cat <<-EOHTML + In more than 5 years + EOHTML + fi fi echo '' prevtimestamp=$maxtimestamp