Merge pull request #6 from netlify/fix_date_issues

Fix clear template issue formatting the date.
This commit is contained in:
David Calavera 2016-11-21 17:15:47 -08:00 committed by GitHub
commit 0218d91c87
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<div class="system-check-ok">
<img src="/images/icon-large-ok.svg" />
{{ 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>
{{ else }}
<p>No incidents so far, all is good</p>