[Rt-commit] rt branch, 4.4/exclude-end-time-in-txn-date-limit, created. rt-4.4.4-290-gc4ffebb48a
? sunnavy
sunnavy at bestpractical.com
Mon Mar 22 17:00:26 EDT 2021
The branch, 4.4/exclude-end-time-in-txn-date-limit has been created
at c4ffebb48a57254c8f17081a29408207b78cf98f (commit)
- Log -----------------------------------------------------------------
commit c4ffebb48a57254c8f17081a29408207b78cf98f
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Mar 23 04:44:34 2021 +0800
Exclude end time when limiting txn date to a day
The $dayend is actually the beginning of the next day.
e.g. TransactionDate.Created = 'today' is supposed to be like:
... >= '2021-03-22 00:00:00' AND ... < '2021-03-23 00:00:00'
Instead of:
... >= '2021-03-22 00:00:00' AND ... <= '2021-03-23 00:00:00'
diff --git a/lib/RT/Tickets.pm b/lib/RT/Tickets.pm
index e094c63ef6..5ed0dc83ed 100644
--- a/lib/RT/Tickets.pm
+++ b/lib/RT/Tickets.pm
@@ -802,7 +802,7 @@ sub _TransDateLimit {
$sb->Limit(
ALIAS => $txn_alias,
FIELD => 'Created',
- OPERATOR => "<=",
+ OPERATOR => "<",
VALUE => $dayend,
@rest,
ENTRYAGGREGATOR => 'AND',
-----------------------------------------------------------------------
More information about the rt-commit
mailing list