From 551d86f713d2d0ffc38539a699f64e631bae7cfd Mon Sep 17 00:00:00 2001 From: Brian Wozeniak Date: Sat, 18 Feb 2017 11:39:54 -0800 Subject: [PATCH] Fix wentDownAt having wrong time if using retryAfter --- .../Foundation/Http/Exceptions/MaintenanceModeException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php b/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php index e809bcf179fc..6ee1de62f77f 100644 --- a/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php +++ b/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php @@ -48,7 +48,7 @@ public function __construct($time, $retryAfter = null, $message = null, Exceptio if ($retryAfter) { $this->retryAfter = $retryAfter; - $this->willBeAvailableAt = $this->wentDownAt->addSeconds($this->retryAfter); + $this->willBeAvailableAt = Carbon::createFromTimestamp($time)->addSeconds($this->retryAfter); } } }