aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/js/app.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 7c1f37b..f256c84 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -146,14 +146,14 @@ window.addEventListener("load", function() {
console.log(date)
let s = screenings_by_date.get(date)
- let start_time = s
- .map( el => new Date(el.start_time) )
+ let start_time = new Date(s
+ .map( el => el.start_time )
.sort()
- .shift()
- let end_time = s
- .map( el => new Date(el.end_time) )
+ .shift())
+ let end_time = new Date(s
+ .map( el => el.end_time )
.sort()
- .pop()
+ .pop())
console.log(" Start time: " + start_time)
console.log(" End time : " + end_time)