fix getting remaining time of signing in
This commit is contained in:
parent
4c248bd88a
commit
989b29a43a
|
|
@ -310,7 +310,7 @@ class User extends Model
|
|||
, false);
|
||||
}
|
||||
|
||||
return $lastSignInTime->addSeconds(option('sign_gap_time') * 3600)->diffInSeconds(Carbon::now());
|
||||
return Carbon::now()->diffInSeconds($lastSignInTime->addSeconds(option('sign_gap_time') * 3600), false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user