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']);