Private GIT

Skip to content
Snippets Groups Projects
Commit 5d07f9f5 authored by miigotu's avatar miigotu
Browse files

Merge pull request #2702 from OmgImAlexis/fix-timestamp-out-of-range

Fixes SiCKRAGETV/sickrage-issues/issues/3007
parents 41afc9cf 4d9183aa
Branches
Tags
No related merge requests found
...@@ -478,7 +478,12 @@ ...@@ -478,7 +478,12 @@
${file_size} ${file_size}
% endif % endif
</td> </td>
<% date = sbdatetime.sbdatetime.convert_to_setting(network_timezones.parse_date_time(epResult['airdate'], show.airs, show.network)) %> % if epResult['airdate'] > int(datetime.datetime.now().toordinal()) * 100:
<% tempDate = datetime.datetime.utcfromtimestamp(0) + datetime.timedelta(seconds=epResult['airdate']) %>
% else:
<% tempDate = epResult['airdate'] %>
% endif
<% date = sbdatetime.sbdatetime.convert_to_setting(network_timezones.parse_date_time(tempDate, show.airs, show.network)) %>
<td class="col-airdate"> <td class="col-airdate">
% if int(epResult['airdate']) != 1: % if int(epResult['airdate']) != 1:
<time datetime="${date.isoformat('T')}" class="date">${sbdatetime.sbdatetime.sbfdate(date)}</time> <time datetime="${date.isoformat('T')}" class="date">${sbdatetime.sbdatetime.sbfdate(date)}</time>
...@@ -486,7 +491,6 @@ ...@@ -486,7 +491,6 @@
Never Never
% endif % endif
<span class="sort_data">${date.isoformat('T')}</span> <span class="sort_data">${date.isoformat('T')}</span>
</td> </td>
<td> <td>
% if sickbeard.DOWNLOAD_URL and epResult['location']: % if sickbeard.DOWNLOAD_URL and epResult['location']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment