Skip to content

Commit 5038470

Browse files
committed
feat: support carbon1
1 parent 6a5906b commit 5038470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Objects/FileObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getKey(): string
2828

2929
public function getModifyAtForHumans(): string
3030
{
31-
$carbon = new Carbon($this->file->getMTime());
31+
$carbon = Carbon::createFromTimestamp($this->file->getMTime());
3232
return "<span title='{$carbon->format('Y-m-d H:i:s')}'>{$carbon->diffForHumans()}</span>";
3333
}
3434

0 commit comments

Comments
 (0)