Merge pull request #6 from netlify/fix_date_issues
Fix clear template issue formatting the date.
This commit is contained in:
commit
0218d91c87
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user