Merge pull request #1678 from CachetHQ/maintenance

Fixed editing maintenance scheduled time
This commit is contained in:
James Brooks 2016-03-31 14:09:32 +01:00
commit 6a466d2c9c

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();