From fdb5f069fc3d69bdf9902823d66bd19071a5250e Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:32:05 +0100 Subject: [PATCH] chore: ajust time to 50s (tests done) --- bootstrap/helpers/github.php | 2 +- resources/views/errors/500.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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