diff --git a/bootstrap/helpers/github.php b/bootstrap/helpers/github.php index be9ca9582..b687c0d68 100644 --- a/bootstrap/helpers/github.php +++ b/bootstrap/helpers/github.php @@ -19,7 +19,7 @@ function generateGithubToken(GithubApp $source, string $type) $githubTime = Carbon::parse($response->header('date')); $timeDiff = abs($serverTime->diffInSeconds($githubTime)); - if ($timeDiff > 0) { + if ($timeDiff > 50) { throw new \Exception( 'System time is out of sync with GitHub API time:
'. '- System time: '.$serverTime->format('Y-m-d H:i:s').' UTC
'. diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index d59b5bc28..553264f00 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -5,7 +5,7 @@

Wait, this is not cool...

There has been an error with the following error message:

@if ($exception->getMessage() !== '') -
+
{!! $exception->getMessage() !!}
@endif