fix(messages): timezone is missing from datetime (#4086)

This commit is contained in:
2024-10-22 20:53:43 +08:00 committed by GitHub
parent f51df1c486
commit 6a3be3301e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,10 @@ class Dialog extends AbstractModel
protected $table = 'dialogs';
protected $casts = [
'last_message_at' => 'datetime'
];
public $timestamps = true;
public static array $types = ['direct'];

View File

@ -36,6 +36,7 @@ class UserDialogState extends AbstractModel
'user_id' => 'integer',
'dialog_id' => 'integer',
'joined_at' => 'datetime',
'last_read_at' => 'datetime',
'last_read_message_id' => 'integer'
];