Private GIT

Skip to content
Snippets Groups Projects
Commit 9546f724 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Check that show has a network and air time before trying to convert airdate/time

parent 9e003545
Branches
Tags
No related merge requests found
......@@ -477,7 +477,7 @@
% endif
</td>
<td class="col-airdate">
% if int(epResult['airdate']) != 1:
% if int(epResult['airdate']) > 1 and show.network and show.airs:
## Lets do this exactly like ComingEpisodes and History
<% airDate = sbdatetime.sbdatetime.convert_to_setting(network_timezones.parse_date_time(epResult['airdate'], show.airs, show.network)) %>
<time datetime="${airDate.isoformat('T')}" class="date">${sbdatetime.sbdatetime.sbfdatetime(airDate)}</time>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment