Skip to content
Snippets Groups Projects
Commit f7449c87 authored by Peter Rotich's avatar Peter Rotich
Browse files

Use GMT to compare due dates.

parent b105ef37
Branches
Tags
No related merge requests found
...@@ -1102,11 +1102,11 @@ class Ticket { ...@@ -1102,11 +1102,11 @@ class Ticket {
$sql='UPDATE '.TICKET_TABLE.' SET isoverdue=0, updated=NOW() '; $sql='UPDATE '.TICKET_TABLE.' SET isoverdue=0, updated=NOW() ';
//clear due date if it's in the past //clear due date if it's in the past
if($this->getDueDate() && strtotime($this->getDueDate())<=time()) if($this->getDueDate() && Misc::db2gmtime($this->getDueDate()) <= Misc::gmtime())
$sql.=', duedate=NULL'; $sql.=', duedate=NULL';
//Clear SLA if est. due date is in the past //Clear SLA if est. due date is in the past
if($this->getSLADueDate() && strtotime($this->getSLADueDate())<=time()) if($this->getSLADueDate() && Misc::db2gmtime($this->getSLADueDate()) <= Misc::gmtime())
$sql.=', sla_id=0 '; $sql.=', sla_id=0 ';
$sql.=' WHERE ticket_id='.db_input($this->getId()); $sql.=' WHERE ticket_id='.db_input($this->getId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment