Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.5.0-b1
-
Component/s: None
-
Labels:None
Description
/Blesta/Core/Automation/Tasks/Common/AbstractTask has a protected $date variable, but it is only set conditionnally on a call to AbstractTask::setDate. This $date variable should be initialized with a proper Minphp/Date instance and overridden if provided with another. This will help ensure all child classes can use the $date without worrying about whether it is set.
AbstractTask::isCurrentDay should also be updated since it checks whether the date is set