<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Here's a code core snippet and the results.
Check out the resulting SQL query! I'm still digging to find the source of
this problem. I'm not sure but I think this started after I upgraded from
3.0.6 to 3.0.8 as I've never seen my reminder script behave the way it has
until after that point.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>my $tickets = new
RT::Tickets($RT::SystemUser);<BR>my $timeDelta = new
RT::Date($RT::SystemUser);<BR>my $maxAge =
30;<BR>$timeDelta->SetToNow();<BR>print $timeDelta->ISO .
"\n";<BR>$timeDelta->AddSeconds($maxAge * 60 * -1);<BR>print
$timeDelta->ISO . "\n";<BR>$tickets->LimitCreated(OPERATOR => '>',
VALUE => $timeDelta->ISO);<BR>$tickets->DEBUG(1);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>my $tix;<BR>while (my $Ticket = $tickets->Next)
{<BR> print $Ticket->id .
"\n";<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[pts/0:cvs] [/var/tmp] > date<BR>Tue Jan 13
16:39:33 EST 2004</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[pts/0:cvs] [/var/tmp] > sudo
./nag<BR>2004-01-13 21:39:40<BR>2004-01-13
21:09:40<BR>RT::Tickets=HASH(0x8b653f0)->_GenericRestriction
QualifiedField=main.Created<BR>RT::Tickets=HASH(0x8b653f0)->_GenericRestriction
QualifiedField=main.EffectiveId<BR>RT::Tickets=HASH(0x8b653f0)->_GenericRestriction
QualifiedField=main.Type<BR>DBIx::SearchBuilder->DoSearch Query: SELECT
main.* FROM Tickets main WHERE ((main.EffectiveId = main.id)) AND
((main.Type = 'ticket')) AND ( ( (main.Created > '2004-01-14 02:09') )
)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> -=| Ben</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>