set timezone

This commit is contained in:
Benjamin Takats
2022-12-02 16:24:25 +01:00
parent 1c2bf70773
commit 17591d8dbb
18 changed files with 286 additions and 34 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string('timezone')
->default('Europe/Berlin');
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
//
});
}
};

View File

@@ -107,9 +107,9 @@ class DatabaseSeeder extends Seeder
Event::create([
'course_id' => 1,
'venue_id' => 1,
'from' => now()->addDays(10),
'from' => now()->startOfDay(),
'to' => now()
->addDays(10)
->startOfDay()
->addHour(),
]);
Registration::create([