summaryrefslogtreecommitdiff
path: root/www/js/rdxport.js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-17 13:26:49 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-17 13:27:36 (GMT)
commite69b9acd4978bccd79979678861da7b9172ad72d (patch)
tree25416bab9e9f760693d0c4ab905c6126d2abe629 /www/js/rdxport.js
parent4f0eecda565ea1060ea7d7d1077c54a74abc3acf (diff)
use DateTime in model
Diffstat (limited to 'www/js/rdxport.js')
-rw-r--r--www/js/rdxport.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/rdxport.js b/www/js/rdxport.js
index ceef6be..44198ed 100644
--- a/www/js/rdxport.js
+++ b/www/js/rdxport.js
@@ -514,7 +514,7 @@ Rdxport.Cut = function(name, description, cart, length, originDatetime,
this.name = $('cutName', this.xml).text();
this.description = $('description', this.xml).text();
this.length = $('length', this.xml).text();
- this.originDatetime = $('originDatetime', this.xml).text();
+ this.originDatetime = new Date($('originDatetime', this.xml).text());
this.playCounter = $('playCounter', this.xml).text();
this.lastPlayDatetime = new Date(new Date($('lastPlayDatetime', this.xml).text()) - 5000); // playout-server live 5s in the future
this.cart = arguments[1];
@@ -523,7 +523,7 @@ Rdxport.Cut = function(name, description, cart, length, originDatetime,
this.description = description;
this.cart = cart;
this.length = length;
- this.originDatetime = originDatetime;
+ this.originDatetime = new Date(originDatetime);
this.playCounter = playCounter;
this.lastPlayDatetime = new Date(new Date(lastPlayDatetime) - 5000); // playout-server live 5s in the future
}