From d35719daed3d7c06e5855c0b258a54b2d837ba90 Mon Sep 17 00:00:00 2001 From: magikstm Date: Mon, 15 Jan 2018 20:18:25 -0500 Subject: [PATCH] browse: Correct 'modified' date alignment (#1954) * Correct browse modified date alignment * New solution to adjust alignment --- caddyhttp/browse/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/browse/setup.go b/caddyhttp/browse/setup.go index 6979308b..a7cef6aa 100644 --- a/caddyhttp/browse/setup.go +++ b/caddyhttp/browse/setup.go @@ -499,7 +499,7 @@ footer { return; } } - e.textContent = d.toLocaleString(); + e.textContent = d.toLocaleString([], {day: "2-digit", month: "2-digit", year: "numeric", hour: "2-digit", minute: "2-digit", second: "2-digit"}); } var timeList = Array.prototype.slice.call(document.getElementsByTagName("time")); timeList.forEach(localizeDatetime);