Simplify date formats

This commit is contained in:
Chandler Swift 2021-10-18 23:10:09 -05:00
parent 4fee11b591
commit 63895bed2d
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -42,7 +42,7 @@
{{if .Available}} {{if .Available}}
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Available!</li> <li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Available!</li>
{{else}} {{else}}
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</li> <li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Jan 2, 2006" }}</li>
{{end}} {{end}}
{{end}} {{end}}
{{end}} {{end}}
@ -52,12 +52,12 @@
<h3 id="{{.DomainName}}">{{.DomainName}}</h3> <h3 id="{{.DomainName}}">{{.DomainName}}</h3>
<dl> <dl>
<dt>Fetched</dt> <dt>Fetched</dt>
<dd>{{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}</dd> <dd>{{.FetchTime.Format "Jan 2, 2006 15:04:05 -0700" }}</dd>
{{if not .Available}} {{if not .Available}}
<dt>Owner</dt> <dt>Owner</dt>
<dd><a href="mailto:{{.Registrant.Email}}">{{.Registrant.Name}} &lt;{{.Registrant.Email}}&gt</a></dd> <dd><a href="mailto:{{.Registrant.Email}}">{{.Registrant.Name}} &lt;{{.Registrant.Email}}&gt</a></dd>
<dt>Since</dt> <dt>Since</dt>
<dd>{{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</dd> <dd>{{(parseTime .DomainInfo.CreatedDate).Format "Jan 2, 2006" }}</dd>
{{end}} {{end}}
{{with .Title}} {{with .Title}}
<dt>Title</dt> <dt>Title</dt>
@ -70,7 +70,7 @@
</dl> </dl>
{{if .ScreenshotURL}} {{if .ScreenshotURL}}
<a href="http://{{.DomainName}}"> <a href="http://{{.DomainName}}">
<img src="{{.ScreenshotURL}}" alt="screenshot of {{.DomainName}} as of {{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}"> <img src="{{.ScreenshotURL}}" alt="screenshot of {{.DomainName}} as of {{.FetchTime.Format "Jan 2, 2006 15:04:05 -0700" }}">
</a> </a>
{{end}} {{end}}
{{end}} {{end}}