Fix calls to deprecated getDateAttribute() for mail packets
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 39s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m47s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-06-26 22:44:31 +10:00
parent b891abb611
commit d3c8bc844a
3 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ abstract class Packet extends FTNBase implements \Iterator, \Countable
$this->content .= "\00\00";
$this->messages = $msgs->map(fn($item)=>$item->only(['id','date']));
$this->messages = $msgs->map(fn($item)=>$item->only(['id','datetime']));
return $this;
}

View File

@ -65,7 +65,7 @@ final class FSC48 extends Packet
*/
protected function header(Collection $msgs): string
{
$oldest = $msgs->sortBy('date')->last();
$oldest = $msgs->sortBy('datetime')->last();
return pack(collect(self::HEADER)->pluck(1)->join(''),
$this->fftn_p->node_id, // Orig Node

View File

@ -116,6 +116,6 @@ final class Mail extends Send
private function youngest(): Carbon
{
return $this->f->messages->pluck('date')->sort()->last();
return $this->f->messages->pluck('datetime')->sort()->last();
}
}