Use ISO8601 date format

The manually formatted date string was very close to
ISO8601 already, so just it directly.
Conforms to standards, is much easier in code (less manual work),
and carries timezone information.
main
Alex Povel 2021-03-29 17:01:07 +02:00
parent 491fdce44f
commit d7a3feb6f3
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ for file in ${tmp}/ok/*.status; do
done done
cat << EOF cat << EOF
</ul> </ul>
<p class=small> Last check: $(date +"%Y/%m/%d %H:%M:%S")</p> <p class=small> Last check: $(date -I'seconds')</p>
EOF EOF
if [ -f "${incidentsfile}" ]; then if [ -f "${incidentsfile}" ]; then
echo '<h1>Incidents</h1>' echo '<h1>Incidents</h1>'