(function ($, document, apiClient) { function renderTimers(page, timers) { var html = ''; var cssClass = "detailTable"; html += '
'; html += ' | Name | '; html += 'Channel | '; html += 'Date | '; html += 'Start | '; html += 'End | '; html += 'Status | '; html += 'Recurring Schedule | '; html += '
---|---|---|---|---|---|---|---|
'; html += ''; html += ''; html += ' | '; html += '' + (timer.Name || '') + ' | '; html += '' + (timer.ChannelName || '') + ' | '; var startDate = timer.StartDate; try { startDate = parseISO8601Date(startDate, { toLocal: true }); } catch (err) { } html += '' + startDate.toLocaleDateString() + ' | '; html += '' + LiveTvHelpers.getDisplayTime(timer.StartDate) + ' | '; html += '' + LiveTvHelpers.getDisplayTime(timer.EndDate) + ' | '; html += '' + (timer.Status || '') + ' | '; html += ''; html += ' |