diff options
Diffstat (limited to 'tls-pem2html.go')
-rw-r--r-- | tls-pem2html.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tls-pem2html.go b/tls-pem2html.go index 9e8e80a..2dce49a 100644 --- a/tls-pem2html.go +++ b/tls-pem2html.go @@ -78,6 +78,7 @@ var tmpl = template.Must(template.New("pem2html"). } </style> <script src="sorttable.js"></script> + <base target="_parent" /> </head> <body> <table class=sortable> @@ -180,7 +181,7 @@ func (l Certs) Len() int { // Less reports whether the element with // index i should sort before the element with index j. func (l Certs) Less(i, j int) bool { - return l[i].X509.NotAfter.UTC().After(l[j].X509.NotAfter.UTC()) + return l[i].X509.NotAfter.After(l[j].X509.NotAfter) } // Swap swaps the elements with indexes i and j. |