Skip to content

Commit

Permalink
Switch to timezone, not UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Oct 23, 2021
1 parent ba74032 commit b3f424f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Support/Steam.php
Expand Up @@ -406,7 +406,7 @@ public function getLastActivities(array $accounts): array
->get(['transactions.account_id', DB::raw('MAX(transaction_journals.date) AS max_date')]); // @phpstan-ignore-line

foreach ($set as $entry) {
$date = new Carbon($entry->max_date, 'UTC');
$date = new Carbon($entry->max_date, config('app.timezone'));
$date->setTimezone(config('app.timezone'));
$list[(int)$entry->account_id] = $date;
}
Expand Down

0 comments on commit b3f424f

Please sign in to comment.