1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Improve checker's html datetime output

* Change the displayed string in the HTML output
   for the date and time of the run
   to be human readable and in the local timezone.
   The `datetime` attribute of the `time` tag still has the RFC 3339 UTC
   version for machine processing.
This commit is contained in:
Bernhard Reiter 2022-06-10 09:49:00 +02:00
parent 8f396bbe31
commit 5ca768b5e2
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554

View file

@ -21,7 +21,7 @@
{{ end }} {{ end }}
<footer> <footer>
Date of run: <time datetime="{{.Date.Format "2006-01-02T15:04:05Z"}}">{{ .Date.Format "2006-01-02T15:04:05Z" }}</time> Date of run: <time datetime="{{.Date.Format "2006-01-02T15:04:05Z"}}">{{ .Date.Local.Format "Monday, 02 Jan 2006 15:04:05 MST" }}</time>
csaf_checker v<span class="version">{{ .Version }}</span> csaf_checker v<span class="version">{{ .Version }}</span>
</footer> </footer>
</body> </body>