Skip to content

Commit

Permalink
Set UTC as default timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
tjardoo committed Jun 9, 2023
1 parent a7fd272 commit c6fa651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/LogAuthAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function handle($event, array $context = null): void
'ip_address' => Request::ip(),
'user_agent' => Request::userAgent(),
'context' => is_array($context) ? json_encode($context) : null,
'created_at' => Carbon::now()->timezone(config('app.timezone')),
'created_at' => Carbon::now()->timezone(config('app.timezone', 'UTC')),
]);
}

Expand Down

0 comments on commit c6fa651

Please sign in to comment.