[Rt-commit] [svn] r1460 -
rt/branches/3.2-RELEASE/html/Elements/RT__Ticket
leira at pallas.eruditorum.org
leira at pallas.eruditorum.org
Wed Sep 8 17:29:25 EDT 2004
Author: leira
Date: Wed Sep 8 17:29:25 2004
New Revision: 1460
Modified:
rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap
Log:
Use time() instead of making an RT::Date.
Modified: rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap (original)
+++ rt/branches/3.2-RELEASE/html/Elements/RT__Ticket/ColumnMap Wed Sep 8 17:29:25 2004
@@ -202,10 +202,8 @@
attribute => 'Due',
value => sub {
my $date = $_[0]->DueObj;
- my $now = new RT::Date($RT::SystemUser);
- $now->SetToNow();
my $class;
- if ($date && $date->Unix > 0 && $date->Unix < $now->Unix) {
+ if ($date && $date->Unix > 0 && $date->Unix < time()) {
$class = 'overdue';
}
return '<span class="' . $class . '">' . $date->AgeAsString . '</span>';
More information about the Rt-commit
mailing list