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

Set default date for the abstract automation task

    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

        Activity

          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:
              31/Jan/19

              Time Tracking

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

                Agile