Skip to content

Commit

Permalink
Fix prevent seconds difference
Browse files Browse the repository at this point in the history
  • Loading branch information
xacobofg authored Oct 6, 2021
1 parent 86ac173 commit 7745095
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inc/ticketsolveddate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ public static function cronChangeDate($task) {
GROUP BY tickets_id) AS taskstart
ON ticket.id=taskstart.tickets_id
WHERE ticket.status=5
AND ticket.solvedate<>task.last_task_end
AND ticket.is_deleted=0".$limit;
AND DATE_FORMAT(ticket.solvedate, '%Y-%m-%d %H:%i')<>DATE_FORMAT(task.last_task_end, '%Y-%m-%d %H:%i')
AND ticket.is_deleted=0
AND ticket.date<task.last_task_end".$limit;

foreach ($DB->request($query) as $id => $row) {
if (!is_null($row["first_task_begin"])){
Expand All @@ -121,4 +122,4 @@ public static function cronChangeDate($task) {
return false;
}
}
}
}

0 comments on commit 7745095

Please sign in to comment.