summaryrefslogtreecommitdiff
path: root/www/js/rdxport.js
diff options
context:
space:
mode:
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
}