mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 16:15:17 +00:00
chore: ajust time to 50s (tests done)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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:<br>'.
|
||||
'- System time: '.$serverTime->format('Y-m-d H:i:s').' UTC<br>'.
|
||||
|
||||
Reference in new issue
Block a user