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

Service scheduled cancellation email may have the wrong date

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: None
    • Labels:
      None

      Description

      The service scheduled cancellation email may use the wrong cancellation date. This is because the date is formatted without considering timezone.

      To reproduce:

      • Set timezone to -1
      • Schedule a service cancellation
      • See that the cancellation date listed in the email is a day before the actual cancellation date

      To resolve:

      In app/models/services.php around line 1995 change:

          private function getSuspensionAndCancellationTags($service, $package, $client)
          {
              Loader::loadModels($this, ['Contacts']);
      

      To

          private function getSuspensionAndCancellationTags($service, $package, $client)
          {
              $this->Date->setTimezone('UTC', Configure::get('Blesta.company_timezone'));
              Loader::loadModels($this, ['Contacts']);
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Oct/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 49 minutes
              49m

                Agile