From 0c8f3ee46a03dd3ca1f39090fb44732523e891c0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 21 Nov 2016 11:41:50 -0500 Subject: derp, i am dum --- crtsh-pem2html.go | 8 ++++---- tls-pem2html.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crtsh-pem2html.go b/crtsh-pem2html.go index f856ffb..612e421 100644 --- a/crtsh-pem2html.go +++ b/crtsh-pem2html.go @@ -30,7 +30,7 @@ var tmpl = template.Must(template.New("pem2html"). Funcs(template.FuncMap{ "red": red, "green": green, - "time": fTime, + "date": fDate, "datetime": fDateTime, }).Parse(` @@ -98,8 +98,8 @@ var tmpl = template.Must(template.New("pem2html"). {{range $cert := .certs}} {{$cert.Updated | datetime}} - {{$cert.X509.NotBefore | time}} - {{$cert.X509.NotAfter | time}} + {{$cert.X509.NotBefore | date}} + {{$cert.X509.NotAfter | date}} {{$cert.X509.Subject.CommonName}} {{$cert.X509.Issuer.Organization}} @@ -109,7 +109,7 @@ var tmpl = template.Must(template.New("pem2html"). `)) -func fTime(t time.Time) template.HTML { +func fDate(t time.Time) template.HTML { return template.HTML(t.Local().Format("")) } diff --git a/tls-pem2html.go b/tls-pem2html.go index 6cecbf6..f3581fd 100644 --- a/tls-pem2html.go +++ b/tls-pem2html.go @@ -30,7 +30,7 @@ var tmpl = template.Must(template.New("pem2html"). Funcs(template.FuncMap{ "red": red, "green": green, - "time": fTime, + "date": fDate, "datetime": fDateTime, }).Parse(` @@ -99,8 +99,8 @@ var tmpl = template.Must(template.New("pem2html"). {{range $cert := .certs}} - {{$cert.X509.NotBefore | time}} - {{$cert.X509.NotAfter | time}} + {{$cert.X509.NotBefore | date}} + {{$cert.X509.NotAfter | date}} {{$cert.X509.Subject.CommonName | html}} {{$cert.Socket | html}} @@ -110,7 +110,7 @@ var tmpl = template.Must(template.New("pem2html"). `)) -func fTime(t time.Time) template.HTML { +func fDate(t time.Time) template.HTML { return template.HTML(t.Local().Format("")) } -- cgit v1.2.3-2-g168b