[Rt-commit] [svn] r1508 - in rt/branches/3.3-TESTING: . html/Elements/RT__Ticket

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Sun Sep 19 20:58:47 EDT 2004


Author: jesse
Date: Sun Sep 19 20:58:46 2004
New Revision: 1508

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap
Log:
 r10221 at tinbook (orig r1460):  leira | 2004-09-08T21:29:25.111044Z
 Use time() instead of making an RT::Date.
 


Modified: rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap	(original)
+++ rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap	Sun Sep 19 20:58:46 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