aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-07-12 15:56:10 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-12 15:56:10 +0200
commit36cd104f321c4a234f22faf75534b4ff786ec9e0 (patch)
tree8f4feaea7234a8832eea57fc69c60ce275072fb3
parentReintroduce time input on generated events for HTML. (diff)
downloadcalp-36cd104f321c4a234f22faf75534b4ff786ec9e0.tar.gz
calp-36cd104f321c4a234f22faf75534b4ff786ec9e0.tar.xz
Fixed display end time of short events.
-rw-r--r--static/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index f54ab2d8..1679c74e 100644
--- a/static/script.js
+++ b/static/script.js
@@ -468,7 +468,7 @@ function bind_properties (el) {
}
if (el.properties.dtend) {
- el.properties.dtend = new Date(el.properties.dtstart);
+ el.properties.dtend = new Date(el.properties.dtend);
el.properties["_slot_dtend"].push(
[el.style, (s, v) => s.bottom = (100 - date_to_percent(v)) + "%"]);
}