Incorrect time on graph page when using relative time in filter on DST change date

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.12rc1, 7.2.6rc1, 7.4.0beta2
    • Component/s: Frontend (F)

      Steps to reproduce:

      1. Open any page with graph and time filter, for example Latest data -> Item - Graph
      2. Type "now-Xd/d" in the "From" and "To" fields.
        Where X is the number of days since the "Daily saving time" was and minus one more day.
        For example: today is 08.04.2025 (timezone Europe/Riga). DST was 30.03.2025. So wee need to subtract 9 days to 30.03.2025 and -1 one more day. As result type "now-10d/d" and graph is
        From =>2025-03-29 12:00:00 , To => 2025-03-29 11:59:59
      3. Apply filter
      4. Click "zoom out" in filter or double click on graph with mouse

      Result:
      Zoom out shifts "From" and "To" by 24 hours, but due to 1 hour daylight saving time change, the filter result will be From =>2025-03-28 12:00:00 , To => 2025-03-30 12:59:59

      Also if select time when the clock change occurred (March 30 from 3:00 to 4:00), for example now-8d-31h and now-8d-30h , you can see that the time on the graph axis does not change
      -32h

      -31h (old time 3 AM, after DST 4 AM)

      -30h

      Expected:
      the result in filter are From =>2025-03-28 12:00:00 , To => 2025-03-30 11:59:59

        1. 30h.png
          53 kB
          Natalja Romancaka
        2. 31h.png
          53 kB
          Natalja Romancaka
        3. 32.png
          51 kB
          Natalja Romancaka
        4. reproduce.png
          56 kB
          Natalja Romancaka
        5. result.png
          62 kB
          Natalja Romancaka

            Assignee:
            Zabbix Development Team
            Reporter:
            Natalja Romancaka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: