fix unknown date handfling in "Overview"

This commit is contained in:
Vincent Riquer 2015-02-06 09:51:18 +01:00
parent b8e8b8395b
commit 3312a78028

13
index
View File

@ -297,9 +297,16 @@ then
then then
(( maxtimestamp < prevtimestamp )) \ (( maxtimestamp < prevtimestamp )) \
&& maxtimestamp=$prevtimestamp && maxtimestamp=$prevtimestamp
cat <<-EOHTML if (( maxtimestamp ))
<td class="date">$(date +%Y-%m-%d -d @$maxtimestamp)</td> then
EOHTML cat <<-EOHTML
<td class="date">$(date +%Y-%m-%d -d @$maxtimestamp)</td>
EOHTML
else
cat <<-EOHTML
<td class="date">In more than 5 years</td>
EOHTML
fi
fi fi
echo '</tr>' echo '</tr>'
prevtimestamp=$maxtimestamp prevtimestamp=$maxtimestamp