fix unknown date handfling in "Overview"
This commit is contained in:
parent
b8e8b8395b
commit
3312a78028
7
index
7
index
@ -297,9 +297,16 @@ then
|
|||||||
then
|
then
|
||||||
(( maxtimestamp < prevtimestamp )) \
|
(( maxtimestamp < prevtimestamp )) \
|
||||||
&& maxtimestamp=$prevtimestamp
|
&& maxtimestamp=$prevtimestamp
|
||||||
|
if (( maxtimestamp ))
|
||||||
|
then
|
||||||
cat <<-EOHTML
|
cat <<-EOHTML
|
||||||
<td class="date">$(date +%Y-%m-%d -d @$maxtimestamp)</td>
|
<td class="date">$(date +%Y-%m-%d -d @$maxtimestamp)</td>
|
||||||
EOHTML
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user