mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 18:04:46 +02:00
Fix timezone for file timestamps (#757)
This commit is contained in:
parent
994852ca00
commit
bbfdee356b
@ -146,8 +146,8 @@ class File extends Model
|
|||||||
return array_map(function ($file) {
|
return array_map(function ($file) {
|
||||||
return [
|
return [
|
||||||
'name' => $file['name'],
|
'name' => $file['name'],
|
||||||
'created_at' => Carbon::parse($file['created']),
|
'created_at' => Carbon::parse($file['created'])->timezone('UTC'),
|
||||||
'modified_at' => Carbon::parse($file['modified']),
|
'modified_at' => Carbon::parse($file['modified'])->timezone('UTC'),
|
||||||
'mode' => $file['mode'],
|
'mode' => $file['mode'],
|
||||||
'mode_bits' => (int) $file['mode_bits'],
|
'mode_bits' => (int) $file['mode_bits'],
|
||||||
'size' => (int) $file['size'],
|
'size' => (int) $file['size'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user