Details

    • Bug
    • Resolution: Not A Bug
    • Minor
    • None
    • Community Edition
    • Web Interface
    • ubuntu 18.04

    Description

      Observium CE 19.8.10000 (22nd August 2019)

      using this version the graph presets for date don't all work, as an example for last month it shows the previous days 28 days where as it used to show the full days from the previous month, if selecting "this month" it only shows data from 1st September

      Attachments

        Activity

          [OBS-3106] Date Presets not working

          but you mean something like "Previous month"

          landy Mike Stupalov added a comment - but you mean something like "Previous month"

          All correctly:
          "This month" - mean dates between first and last day in current month (ie for september dates between 2019-09-01 and 2019-09-30)
          "Last month" - mean dates between current date and one month ago (ie for september 24 dates between 2019-08-25 and 2019-09-24)

          landy Mike Stupalov added a comment - All correctly: "This month" - mean dates between first and last day in current month (ie for september dates between 2019-09-01 and 2019-09-30) "Last month" - mean dates between current date and one month ago (ie for september 24 dates between 2019-08-25 and 2019-09-24)

          resolved by setting to this in html/includes/functions.inc.php

              case 'lmonth':

                $from = date($begin_fmt, strtotime('first day of last month'));

                $to   = date($end_fmt, strtotime('last day of last month'));

                break;

          kevinwincott kevin wincott added a comment - resolved by setting to this in html/includes/functions.inc.php     case 'lmonth':       $from = date($begin_fmt, strtotime('first day of last month'));       $to   = date($end_fmt, strtotime('last day of last month'));       break;

          People

            adama Adam Armstrong
            kevinwincott kevin wincott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: