Skip to content

Commit

Permalink
Fix timezone for file timestamps (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 authored Dec 3, 2024
1 parent 994852c commit bbfdee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ public function getRows(): array
return array_map(function ($file) {
return [
'name' => $file['name'],
'created_at' => Carbon::parse($file['created']),
'modified_at' => Carbon::parse($file['modified']),
'created_at' => Carbon::parse($file['created'])->timezone('UTC'),
'modified_at' => Carbon::parse($file['modified'])->timezone('UTC'),
'mode' => $file['mode'],
'mode_bits' => (int) $file['mode_bits'],
'size' => (int) $file['size'],
Expand Down

0 comments on commit bbfdee3

Please sign in to comment.