Schedule jobs using UTC to prevent tiggers in the past

This commit is contained in:
JonnyWong16 2019-05-02 20:01:39 -07:00
commit eea1cf1d2c
5 changed files with 25 additions and 17 deletions

View file

@ -39,7 +39,7 @@ DOCUMENTATION :: END
<td><i class="fa fa-sm fa-fw fa-check"></i> Active</td>
<td>${helpers.format_timedelta_Hms(sched_job.trigger.interval)}</td>
<td>${helpers.format_timedelta_Hms(sched_job.next_run_time - now)}</td>
<td>${sched_job.next_run_time.strftime('%Y-%m-%d %H:%M:%S')}</td>
<td>${sched_job.next_run_time.astimezone(plexpy.SYS_TIMEZONE).strftime('%Y-%m-%d %H:%M:%S')}</td>
</tr>
% elif job in ('Check for server response', 'Check for active sessions', 'Check for recently added items') and plexpy.WS_CONNECTED:
<tr>