Make sure all dates are in UTC (#1139)
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -290,7 +290,7 @@ class PirepService extends Service
|
||||
public function findDuplicate(Pirep $pirep)
|
||||
{
|
||||
$minutes = setting('pireps.duplicate_check_time', 10);
|
||||
$time_limit = Carbon::now()->subMinutes($minutes)->toDateTimeString();
|
||||
$time_limit = Carbon::now('UTC')->subMinutes($minutes)->toDateTimeString();
|
||||
|
||||
$where = [
|
||||
'user_id' => $pirep->user_id,
|
||||
|
||||
Reference in New Issue
Block a user