diff options
author | mark <mark> | 2011-01-01 06:39:17 +0000 |
---|---|---|
committer | mark <mark> | 2011-01-01 06:39:17 +0000 |
commit | 29c296af24c09dc904f6fad51edbf3c5f2f085d3 (patch) | |
tree | b483d255acfd97b9adcd97ecee949f88972f485e /rt/lib | |
parent | c587b5fdc7175c2a752558efccfc3f424cff6c0d (diff) |
ticketing escalation, part 1, RT#8254
Diffstat (limited to 'rt/lib')
-rw-r--r-- | rt/lib/RT/Action/EscalatePriority.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rt/lib/RT/Action/EscalatePriority.pm b/rt/lib/RT/Action/EscalatePriority.pm index bf9de92c2..3704ee73f 100644 --- a/rt/lib/RT/Action/EscalatePriority.pm +++ b/rt/lib/RT/Action/EscalatePriority.pm @@ -121,7 +121,12 @@ sub Prepare { # we've got a due date. now there are other things we should do else { - my $diff_in_seconds = $due->Diff(time()); + my $arg = $self->Argument || ''; + my $now = time(); + if ( $arg =~ /CurrentTime:\s*(\d+)/i ) { + $now = $1; + } + my $diff_in_seconds = $due->Diff($now); my $diff_in_days = int( $diff_in_seconds / 86400); #if we haven't hit the due date yet |