Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
f7449c87
Commit
f7449c87
authored
12 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Use GMT to compare due dates.
parent
b105ef37
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/class.ticket.php
+2
-2
2 additions, 2 deletions
include/class.ticket.php
with
2 additions
and
2 deletions
include/class.ticket.php
+
2
−
2
View file @
f7449c87
...
@@ -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
()
&&
strto
time
(
$this
->
getDueDate
())
<=
time
())
if
(
$this
->
getDueDate
()
&&
Misc
::
db2gm
time
(
$this
->
getDueDate
())
<=
Misc
::
gm
time
())
$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
()
&&
strto
time
(
$this
->
getSLADueDate
())
<=
time
())
if
(
$this
->
getSLADueDate
()
&&
Misc
::
db2gm
time
(
$this
->
getSLADueDate
())
<=
Misc
::
gm
time
())
$sql
.
=
', sla_id=0 '
;
$sql
.
=
', sla_id=0 '
;
$sql
.
=
' WHERE ticket_id='
.
db_input
(
$this
->
getId
());
$sql
.
=
' WHERE ticket_id='
.
db_input
(
$this
->
getId
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment