Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2052

System Overview: Graph data fetched using local rather than UTC time

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-b1
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      The AdminMain controller passes local date times to fetch service/client data when it should be passing UTC date times instead.

      e.g. update:

      $day_start = $this->Date->cast($date, 'Y-m-d 00:00:00');
      $day_end = $this->Date->cast($date, 'Y-m-d 23:59:59');
      

      to

      $day_start = $this->SystemOverviewStatistics->dateToUtc($this->Date->cast($date, 'Y-m-d 00:00:00'));
      $day_end = $this->SystemOverviewStatistics->dateToUtc($this->Date->cast($date, 'Y-m-d 23:59:59'));
      

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Description The AdminMain controller passes local date times to fetch service/client data when it should be passing UTC date times instead.

        e.g. update:
        {code:php}
        $day_start = $this->Date->cast($date, 'Y-m-d 00:00:00');
        $day_end = $this->Date->cast($date, 'Y-m-d 23:59:59');
        {code}

        to
        {code:php}
        $day_start = $this->SystemOverviewStatistics->dateToUtc($this->Date->cast($date, 'Y-m-d 00:00:00'));
        $day_end = $this->SystemOverviewStatistics->dateToUtc($this->Date->cast($date, 'Y-m-d 23:59:59'));
        {code}
        The AdminMain controller passes local date times to fetch service/client data when it should be passing UTC date times instead.

        e.g. update:
        {code:java}
        $day_start = $this->Date->cast($date, 'Y-m-d 00:00:00');
        $day_end = $this->Date->cast($date, 'Y-m-d 23:59:59');
        {code}

        to
        {code:java}
        $day_start = $this->SystemOverviewStatistics->dateToUtc($this->Date->cast($date, 'Y-m-d 00:00:00'));
        $day_end = $this->SystemOverviewStatistics->dateToUtc($this->Date->cast($date, 'Y-m-d 23:59:59'));
        {code}
        tyson Tyson Phillips (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        tyson Tyson Phillips (Inactive) made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Sep/16