SLA report widget calculates dynamic "To date" differently before and after daylight savings date if day rounding is used

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.23rc1, 7.4.7rc1, 8.0.0alpha2 (master)
    • Component/s: Frontend (F)

      Problem description: Due to daylight savings time on 26.10 (clock go back by 1 hour) SLA report widget, when uding a dynamic date with rounding up to whole day in "From date" and "To date" fields, will display the same result for two consistent days (25.10 and 26.10). Such problem does not occur if rounding to a whole day is not used:
       

      Steps to reproduce:
      Precondition: the compared To dates should fall before and after the dailight savings time change on 26.10. So if today is 08.01.2026, the compared resulting "To dates" should be "now/d - 74d" and "now/d - 75d".

      1. Today is 08.01.2026.
      2. Create a service
      3. Create an SLA "Test SLA" with type = Daily
      4. Create a service "Test service" for this SLA
      5. Open any existing dashboard
      6. Add an SLA report widget with the following parameters:
        1. SLA = "Test SLA"
        2. Service = "Test service"
        3. Show periods = 1
        4. To date = "now-74d"
      7. Save dashboard and check the date that is shown on the SLA report widget.
        Result 1: the date is 26.10.2026
      8. Change the "To date" to "now-75d" and check the date displayed on the SLA report widget.
        Result 2: the date is 25.10.2026
      9. Change the "To date" to "now/d-74d" and check the date displayed on the SLA report widget.
        Result 3: the date is 26.10.2026
      10. Change the "To date" to "now/d-75d" and check the date displayed on the SLA report widget.

      Result: the date is still 26.10.2026
      Expected: Same as without the rounding of date up to a whole day, increating the time shift for 1 day should've resulted in date shift on the report by 1 day.

            Assignee:
            Zabbix Development Team
            Reporter:
            Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: