Bug on relative filters with date and timezone

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • azidevnom
    Junior Member
    • Oct 2019
    • 20

    Bug on relative filters with date and timezone

    Espo: 7.5.5
    PHP: 8.1.21
    MySQL: 8.0.28

    When trying to filter an entity by a date (not datetime, just date) column using relative filters like "Today" and "This month", it does not take into account the timezone.

    In this example we can see that when filtering by Today, shows Tomorrow's results. The key here is that this happens when UTC time IS tomorrow, despite having set the timezone different everywhere in the system. (America/Santiago UTC -4 in the example, screenshot taken after 20:00).




  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    I think I know where is the problem. Will try to fix it.
    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


    • yuri
      yuri commented
      Editing a comment
      Will be fixed in v8.0 as it's quite a big patch.

    • Kharg
      Kharg commented
      Editing a comment
      Also, was there ever a filter for "Yesterday"? I do remember there being one, but it's not there anymore

    • yuri
      yuri commented
      Editing a comment
      No. You can check on GitHub. https://github.com/espocrm/espocrm/b...ds/date.js#L41
Working...