Fix calls to deprecated getDateAttribute() for mail packets
This commit is contained in:
parent
b891abb611
commit
d3c8bc844a
@ -361,7 +361,7 @@ abstract class Packet extends FTNBase implements \Iterator, \Countable
|
|||||||
|
|
||||||
$this->content .= "\00\00";
|
$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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ final class FSC48 extends Packet
|
|||||||
*/
|
*/
|
||||||
protected function header(Collection $msgs): string
|
protected function header(Collection $msgs): string
|
||||||
{
|
{
|
||||||
$oldest = $msgs->sortBy('date')->last();
|
$oldest = $msgs->sortBy('datetime')->last();
|
||||||
|
|
||||||
return pack(collect(self::HEADER)->pluck(1)->join(''),
|
return pack(collect(self::HEADER)->pluck(1)->join(''),
|
||||||
$this->fftn_p->node_id, // Orig Node
|
$this->fftn_p->node_id, // Orig Node
|
||||||
|
@ -116,6 +116,6 @@ final class Mail extends Send
|
|||||||
|
|
||||||
private function youngest(): Carbon
|
private function youngest(): Carbon
|
||||||
{
|
{
|
||||||
return $this->f->messages->pluck('date')->sort()->last();
|
return $this->f->messages->pluck('datetime')->sort()->last();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user