change the time calculation logic

This commit is contained in:
Focuslinkstech 2024-09-11 16:52:34 +01:00 committed by GitHub
parent 05b681df47
commit fe532a6238
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -195,7 +195,9 @@
</div> </div>
{/if} {/if}
{if $run_date} {if $run_date}
{if $current_date - $run_time > 3600} {assign var="current_time" value=$smarty.now}
{assign var="run_time" value=strtotime($run_date)}
{if $current_time - $run_time > 3600}
<div class="panel panel-warning panel-hovered mb20 activities"> <div class="panel panel-warning panel-hovered mb20 activities">
<div class="panel-heading"><i class="fa fa-clock-o"></i> &nbsp; {Lang::T('Cron has not run for over 1 hour. Please <div class="panel-heading"><i class="fa fa-clock-o"></i> &nbsp; {Lang::T('Cron has not run for over 1 hour. Please
check your setup.')}</div> check your setup.')}</div>