Skip to content

Commit

Permalink
Merge pull request #1420 from shikorism/develop
Browse files Browse the repository at this point in the history
Release 2025.2.0
  • Loading branch information
shibafu528 authored Feb 19, 2025
2 parents 54a6703 + 817b77b commit de298c5
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 153 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function profile($name)
$countByDay = [];
foreach ($countByDayQuery as $data) {
$countByDay[] = [
't' => Carbon::createFromFormat('Y/m/d', $data->date)->timestamp,
't' => Carbon::createFromFormat('Y/m/d', $data->date, 'UTC')->startOfDay()->timestamp,
'count' => $data->count
];
}
Expand Down Expand Up @@ -290,7 +290,7 @@ private function makeGraphData(User $user, CarbonInterface $dateSince = null, Ca
}

foreach ($groupByDay as $data) {
$date = Carbon::createFromFormat('Y/m/d', $data->date);
$date = Carbon::createFromFormat('Y/m/d', $data->date, 'UTC')->startOfDay();
$yearAndMonth = $date->format('Y/m');

$dailySum[] = ['t' => $date->timestamp, 'count' => $data->count];
Expand Down
Loading

0 comments on commit de298c5

Please sign in to comment.