Ad Widget

Collapse

[1.6.5][frontend] Time grid alignment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jak
    Junior Member
    • Jul 2009
    • 4

    #1

    [1.6.5][frontend] Time grid alignment

    Hi,

    this patch aligns time grid of graph to better suit human eyes. It aligns the grid to whole "units": 1/5/15/30 minutes, 1/3/6 hours
    Attached Files
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    Thank you. I think we'll include it(with some compatibility changes) in zbx 1.6.6

    P.S. warning! this patch works only on php >= 5.2.0
    Last edited by Aly; 23-07-2009, 10:09.
    Zabbix | ex GUI developer

    Comment

    • Aly
      ZABBIX developer
      • May 2007
      • 1126

      #3
      And so this patch goes to trunk, it won't be in zbx 1.6.6

      Here is slightly modified patch which will work with php > 4.2
      Attached Files
      Zabbix | ex GUI developer

      Comment

      • jak
        Junior Member
        • Jul 2009
        • 4

        #4
        Is it possible to use "to_time" in "date" func when getting the $offset? When looking at graph across date with daylight saving time adjustments, dates does not display correctly (are shifted).

        And also, using modified patch, sometimes there are some grid lines missing at the beginning/end and there is one extra label out of grid without grid line, mixed into the other labels (sometimes covering the others)

        Comment

        • jak
          Junior Member
          • Jul 2009
          • 4

          #5
          i checked modified patch and here is possible correction
          Attached Files

          Comment

          • Aly
            ZABBIX developer
            • May 2007
            • 1126

            #6
            Yes, probably to_time could be used here. This deylightsaving offset is a problem a bit.
            Zabbix | ex GUI developer

            Comment

            Working...