Announcement

Collapse
No announcement yet.

Bug on relative filters with date and timezone

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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).





  • #2
    I think I know where is the problem. Will try to fix it.

    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...
X