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

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Fix Version/s 5.2.0-b2 [ 11717 ]
        Fix Version/s Short Term [ 10800 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.3.0 Sprint 2 [ 139 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 49 minutes [ 2940 ]
        Worklog Id 15329 [ 15329 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          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