<div dir="ltr">I don't think this was fixed. Though I am not sure, will have to cross check.<div><br></div><div>There was AM PM issue and this issue. AM PM issue was fixed but this one was not fixed as I remember.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 18, 2018 at 3:51 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I change the user's "Calendar Hour Format" preferences from 12hr to 24hr, then the *between* query works...<br>
<br>
Anyone remember this being fixed at some point in vt65?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Fri May 18 10:18:22 2018,816 [1069] DEBUG VT - Entering getValidDBInsertDateValue(20-0<wbr>5-2017) method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Exiting getValidDBInsertDateValue method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Entering getDBInsertDateValue(2017-05-2<wbr>0 00:00:00) method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Exiting getDBInsertDateValue method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Entering getDBInsertTimeValue(2017-05-2<wbr>0 00:00:00) method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Exiting getDBInsertTimeValue method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Entering getValidDBInsertDateValue(20-0<wbr>5-2018) method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Exiting getValidDBInsertDateValue method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Entering getDBInsertDateValue(2018-05-2<wbr>0 00:00:00) method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Exiting getDBInsertDateValue method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Entering getDBInsertTimeValue(2018-05-2<wbr>0 00:00:00) method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Exiting getDBInsertTimeValue method ...<br>
Fri May 18 10:18:22 2018,817 [1069] DEBUG VT - Prepared sql query being executed : SELECT vtiger_jobseekers.jsfirstname, vtiger_jobseekers.jslastname, vtiger_jobseekers.jsphone, vtiger_crmentity.createdtime, vtiger_crmentity.modifiedtime, vtiger_jobseekers.jobseekersid FROM vtiger_jobseekers  INNER JOIN vtiger_crmentity ON vtiger_jobseekers.jobseekersid = vtiger_crmentity.crmid  WHERE vtiger_crmentity.deleted=0 AND   (  (( CAST(vtiger_crmentity.createdt<wbr>ime AS DATE) BETWEEN '2017-05-19 23:00:00' AND '2018-05-19 23:00:00') )) AND vtiger_jobseekers.jobseekersid > 0 ORDER BY modifiedtime DESC LIMIT 0,21<br>
</blockquote><div><div class="h5">
<br>
<br>
On 18/05/18 10:39, Alan Lord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Has anyone seen this before and can point me to the fix? I couldn't find an obvious reference to this on Gitlab.<br>
<br>
This is the same filter. I start with simple condition such as Created Time is *Before* 18/05/2017.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Fri May 18 09:16:51 2018,359 [8905] DEBUG VT - Entering getValidDBInsertDateValue(2017<wbr>-05-18) method ...<br>
Fri May 18 09:16:51 2018,359 [8905] DEBUG VT - Exiting getValidDBInsertDateValue method ...<br>
Fri May 18 09:16:51 2018,359 [8905] DEBUG VT - Entering getDBInsertDateValue(2017-05-1<wbr>8 23:59:58) method ...<br>
Fri May 18 09:16:51 2018,359 [8905] DEBUG VT - Exiting getDBInsertDateValue method ...<br>
Fri May 18 09:16:51 2018,359 [8905] DEBUG VT - Entering getDBInsertTimeValue(2017-05-1<wbr>8 23:59:58) method ...<br>
Fri May 18 09:16:51 2018,359 [8905] DEBUG VT - Exiting getDBInsertTimeValue method ...<br>
Fri May 18 09:16:51 2018,359 [8905] DEBUG VT - Prepared sql query being executed : SELECT vtiger_jobseekers.jsfirstname, vtiger_jobseekers.jslastname, vtiger_jobseekers.jsphone, vtiger_crmentity.createdtime, vtiger_crmentity.modifiedtime, vtiger_jobseekers.jobseekersid FROM vtiger_jobseekers  INNER JOIN vtiger_crmentity ON vtiger_jobseekers.jobseekersid = vtiger_crmentity.crmid  WHERE vtiger_crmentity.deleted=0 AND   (  (( vtiger_crmentity.createdtime < '2017-05-18 22:59:58') )) AND vtiger_jobseekers.jobseekersid > 0 ORDER BY modifiedtime DESC LIMIT 0,21<br>
</blockquote>
<br>
<br>
Then if I edit my filter and ask for the Created Time *Between* 18/05/2017 and 18/05/2018, it breaks. Look at what is being passed into the getValidDBInsertDateValue() function compared with above. Note there is no exit logged from the getValidDBInsertDateValue function or any kind of formatted date passed to the Query:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Fri May 18 09:19:02 2018,360 [8809] DEBUG VT - Entering getValidDBInsertDateValue(19-0<wbr>5-2017 12:00 AM) method ...<br>
Fri May 18 09:19:02 2018,360 [8809] DEBUG VT - Entering getValidDBInsertDateValue(19-0<wbr>5-2018 12:00 AM) method ...<br>
Fri May 18 09:19:02 2018,361 [8809] DEBUG VT - Prepared sql query being executed : SELECT vtiger_jobseekers.jsfirstname, vtiger_jobseekers.jslastname, vtiger_jobseekers.jsphone, vtiger_crmentity.createdtime, vtiger_crmentity.modifiedtime, vtiger_jobseekers.jobseekersid FROM vtiger_jobseekers  INNER JOIN vtiger_crmentity ON vtiger_jobseekers.jobseekersid = vtiger_crmentity.crmid  WHERE vtiger_crmentity.deleted=0 AND   (  (( vtiger_crmentity.createdtime BETWEEN '' AND '') )) AND vtiger_jobseekers.jobseekersid > 0 ORDER BY modifiedtime DESC LIMIT 0,21<br>
</blockquote>
<br>
TIA<br>
<br>
Al<br>
<br>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
</blockquote>
<br>
<br></div></div>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br></div>