commit c7155d8d1c0f7fcc0373d8dc90db4c27054d577b
parent 870e516194306d1f2cb13f31b23cc8acaf67779e
Author: mjkloeckner <martin.cachari@gmail.com>
Date: Fri, 21 Oct 2022 19:03:58 -0300
Removed scripts/article-date.js since it was deprecated
Diffstat:
1 file changed, 0 insertions(+), 15 deletions(-)
diff --git a/scripts/article-date.js b/scripts/article-date.js
@@ -1,15 +0,0 @@
-// https://stackoverflow.com/questions/3552461/how-do-i-format-a-date-in-javascript
-function join(t, a, s) {
- function format(m) {
- let f = new Intl.DateTimeFormat('en', m);
- return f.format(t);
- }
- return a.map(format).join(s);
-}
-
-var dt = new Date(document.lastModified);
-
-let format = [{day: 'numeric'}, {month: 'short'}, {year: 'numeric'}];
-let dts = join(dt, format, '-');
-
-document.querySelector('.article-date').innerHTML += " (last updated " + dts + ")";