search dateTime : between

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1476

    search dateTime : between

    Dear,

    when we make a search on dateTime field with 'between'

    start : 01/02/2019
    end : 28/02.2019

    result go from 01/02/2019 to 27/02.2019

    then he do :
    >= start AND < end

    it's normal behaviour or ..

    do you think is good behaviour ?

    >= start AND <= end. is not better ?

    Regards

    EspoCRM : 5.6.0
    php : 7.1.2

    On SelectManagers/Base line 1071
    PHP Code:
    
    $dt->modify('-1 second');   =>  $dt->modify('+1 day -1 second'); 
    
    Last edited by item; 04-06-2019, 10:48 AM.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    It's it normal? I was persuaded that it's how it should be working.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • item
      Active Community Member
      • Mar 2017
      • 1476

      #3
      Thanks Yuri,
      it's "normal" .. then it's perfect
      I just make this and it's so too :
      PHP Code:
      SELECT *
      FROM `contact`
      WHERE (date_time BETWEEN '2019-02-01' AND '2019-03-01') 
      
      And result is like "EspoCRM".. then it's me the "not normal"..
      Maybe too because in Belgium, when we talk between 2 dates, it's always >= and <=

      Regards
      Last edited by item; 04-08-2019, 02:49 PM.
      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • yuri
        Member
        • Mar 2014
        • 8453

        #4
        Recently there was one not careful fix. I will it fix so that it will be working like

        date_time BETWEEN '2019-02-01 00:00:00' AND '2019-03-01 23:59:59'

        Thanks for reporting.
        Last edited by yuri; 04-09-2019, 06:09 AM.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...