mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 06:33:27 +08:00
fix(messages): timezone is missing from datetime (#4086)
This commit is contained in:
parent
f51df1c486
commit
6a3be3301e
|
@ -42,6 +42,10 @@ class Dialog extends AbstractModel
|
||||||
|
|
||||||
protected $table = 'dialogs';
|
protected $table = 'dialogs';
|
||||||
|
|
||||||
|
protected $casts = [
|
||||||
|
'last_message_at' => 'datetime'
|
||||||
|
];
|
||||||
|
|
||||||
public $timestamps = true;
|
public $timestamps = true;
|
||||||
|
|
||||||
public static array $types = ['direct'];
|
public static array $types = ['direct'];
|
||||||
|
|
|
@ -36,6 +36,7 @@ class UserDialogState extends AbstractModel
|
||||||
'user_id' => 'integer',
|
'user_id' => 'integer',
|
||||||
'dialog_id' => 'integer',
|
'dialog_id' => 'integer',
|
||||||
'joined_at' => 'datetime',
|
'joined_at' => 'datetime',
|
||||||
|
'last_read_at' => 'datetime',
|
||||||
'last_read_message_id' => 'integer'
|
'last_read_message_id' => 'integer'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user