Skip to content

Commit

Permalink
fix(messages): timezone is missing from datetime (#4086)
Browse files Browse the repository at this point in the history
  • Loading branch information
YUCLing authored Oct 22, 2024
1 parent f51df1c commit 6a3be33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/messages/src/Dialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
1 change: 1 addition & 0 deletions extensions/messages/src/UserDialogState.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];

Expand Down

0 comments on commit 6a3be33

Please sign in to comment.