Fixed editing maintenance scheduled time

Closes #1669.
This commit is contained in:
Graham Campbell
2016-03-31 13:29:36 +01:00
parent b0a4820e80
commit 7a81d3b6ef

View File

@@ -140,7 +140,7 @@ class ScheduleController extends Controller
$scheduleData = Binput::get('incident');
// Parse the schedule date.
$scheduledAt = app(DateFactory::class)->createNormalized('d/m/Y H:i', $scheduleData['scheduled_at']);
$scheduledAt = app(DateFactory::class)->create('d/m/Y H:i', $scheduleData['scheduled_at']);
if ($scheduledAt->isPast()) {
$messageBag = new MessageBag();