diff --git a/caddy/setup/browse.go b/caddy/setup/browse.go index 4d3eaf819..6039480b6 100644 --- a/caddy/setup/browse.go +++ b/caddy/setup/browse.go @@ -385,7 +385,7 @@ footer { {{- else}} {{.HumanSize}} {{- end}} - + {{- end}} @@ -401,6 +401,12 @@ footer { return; } var d = new Date(e.getAttribute('datetime')); + if (isNaN(d)) { + d = new Date(e.textContent); + if (isNaN(d)) { + return; + } + } e.textContent = d.toLocaleString(); } var timeList = Array.prototype.slice.call(document.getElementsByTagName("time"));