Make sure all dates are in UTC (#1139)

This commit is contained in:
Nabeel S
2021-04-13 09:25:38 -04:00
committed by GitHub
parent 7e9eb08135
commit bfddb2c84d
9 changed files with 16 additions and 13 deletions

View File

@@ -90,10 +90,10 @@ class SeederService extends Service
$data = file_get_contents(database_path('/seeds/modules.yml'));
$yml = Yaml::parse($data);
foreach ($yml as $module) {
$module['updated_at'] = Carbon::now();
$module['updated_at'] = Carbon::now('UTC');
$count = DB::table('modules')->where('name', $module['name'])->count('name');
if ($count === 0) {
$module['created_at'] = Carbon::now();
$module['created_at'] = Carbon::now('UTC');
DB::table('modules')->insert($module);
} else {
DB::table('modules')