Fix clear template issue formatting the date.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera 2016-11-21 17:06:08 -08:00
parent 0143a64735
commit e20a6bc9af
No known key found for this signature in database
GPG Key ID: DE3D437CCBECE2C4

View File

@ -1,7 +1,7 @@
<div class="system-check-ok"> <div class="system-check-ok">
<img src="/images/icon-large-ok.svg" /> <img src="/images/icon-large-ok.svg" />
{{ with .Date }} {{ with .Date }}
{{ $latestDate := dateFormat "2006-01-02T15:04:05" .Date}} {{ $latestDate := dateFormat "2006-01-02T15:04:05" .}}
<p id="days-since-latest" data-latest-incident-date="{{ $latestDate }}">48+ days since last incident</p> <p id="days-since-latest" data-latest-incident-date="{{ $latestDate }}">48+ days since last incident</p>
{{ else }} {{ else }}
<p>No incidents so far, all is good</p> <p>No incidents so far, all is good</p>