aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-07-11 00:14:47 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-11 00:14:47 +0200
commit2b6fd4deb904da92fd991c92c360134a7f65e3bc (patch)
tree3918fd9fb4408077165f08e732128106d314b4ee
parentSwitch on type instead of field name... (diff)
downloadcalp-2b6fd4deb904da92fd991c92c360134a7f65e3bc.tar.gz
calp-2b6fd4deb904da92fd991c92c360134a7f65e3bc.tar.xz
TODO tz.
-rw-r--r--static/script.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index 008e01bb..cb914e54 100644
--- a/static/script.js
+++ b/static/script.js
@@ -347,6 +347,7 @@ window.onload = function () {
}
for (let s of el.querySelectorAll(field + " > :not(parameters)")) {
switch (s.tagName) {
+ // TODO TZ?
case 'date':
lst.push([s, (s, v) => s.innerHTML = v.format("%Y-%m-%d")]); break;
case 'date-time':