Sperrung 1 Minute vor Anstoss anstatt 1 Stunde
This commit is contained in:
parent
0eda6f46c2
commit
90debedbdb
3 changed files with 4 additions and 3 deletions
|
|
@ -67,7 +67,8 @@ class Game extends Model
|
||||||
|
|
||||||
|
|
||||||
public function getLocktime() {
|
public function getLocktime() {
|
||||||
return Carbon\Carbon::parse($this->kickoff)->addHour(-1);
|
//return Carbon\Carbon::parse($this->kickoff)->addHour(-1);
|
||||||
|
return Carbon\Carbon::parse($this->kickoff)->addMinute(-1); // 2020-09-11 changed Lock from Hour to Minute
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ class TippsController extends Controller
|
||||||
foreach($rounds as $round) {
|
foreach($rounds as $round) {
|
||||||
$games=Game::all()->where('round_id','=',$round->id);
|
$games=Game::all()->where('round_id','=',$round->id);
|
||||||
foreach($games as $game) {
|
foreach($games as $game) {
|
||||||
|
|
||||||
// Tipp erzeugen wenn noch nicht vorhanden
|
// Tipp erzeugen wenn noch nicht vorhanden
|
||||||
$tipp = DB::table('tipps')->where([
|
$tipp = DB::table('tipps')->where([
|
||||||
['game_id','=',$game->id],
|
['game_id','=',$game->id],
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,8 @@ class Round extends Model
|
||||||
$kickoff = Carbon\Carbon::parse($game->kickoff);
|
$kickoff = Carbon\Carbon::parse($game->kickoff);
|
||||||
if ($kickoff < $earliestKickoff) { $earliestKickoff = $kickoff; }
|
if ($kickoff < $earliestKickoff) { $earliestKickoff = $kickoff; }
|
||||||
}
|
}
|
||||||
$earliestKickoff->subHour();
|
//$earliestKickoff->subHour();
|
||||||
|
$earliestKickoff->subMinute(); // 2020-09-11 changed from SubHour()
|
||||||
return $earliestKickoff;
|
return $earliestKickoff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue