0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

browse: Correct 'modified' date alignment (#1954)

* Correct browse modified date alignment

* New solution to adjust alignment
This commit is contained in:
magikstm 2018-01-15 20:18:25 -05:00 committed by Matt Holt
parent c296d7e7e0
commit d35719daed

View file

@ -499,7 +499,7 @@ footer {
return; 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")); var timeList = Array.prototype.slice.call(document.getElementsByTagName("time"));
timeList.forEach(localizeDatetime); timeList.forEach(localizeDatetime);