[rt-users] Searching on TransactionDate > xxx = no results

Ben Goodwin ben at atomicmatrix.net
Fri Oct 31 07:44:39 EST 2003


I just had to find the bug.. at least this way I'm now more familiar with
RT's internal workings :-) (4 hours later)

The offending code is line 432 (RT 3.0.6) of lib/RT/Tickets_Overlay.pm:

$d->Set($value);

I set it to

$d->Set( Format => 'ISO', Value => $value);

and that appears to have done the trick.  However, that seems like a silly
step - take an ISO date, create a date object, set it according to a known
ISO value, and then use the result date object's ISO value as the final
input.. unless the input format should be 'unknown' and you're trying to
guarantee an ISO date from the original $value?  Anyway, I'm sure you know
what to do now, but can you let me know the final verdict on what's
supposed to be there so I can patch my version properly?  Thanks!

  -=| Ben




More information about the rt-users mailing list