SAAS-929: Shows don't show up on schedule widget on Firefox

This commit is contained in:
drigato 2015-07-06 12:53:15 -04:00
parent ec0fbd2d61
commit a5a91c25e0
2 changed files with 14 additions and 2 deletions

View file

@ -40,8 +40,10 @@
// First we have to create a Date object out of the show time in UTC.
// Then we can format the string in the client's local timezone.
var start_date = new Date(value.starts + " UTC");
var end_date = new Date(value.ends + " UTC");
// NOTE: we have to multiply the timestamp by 1000 because in PHP
// the timestamps are in seconds and are in milliseconds in javascript.
var start_date = new Date(value.starts_timestamp*1000);
var end_date = new Date(value.ends_timestamp*1000);
// This variable is used to identify which schedule_data object (which day of the week)
// we should assign the show to.