mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 13:30:47 +08:00
Transform post time into a date
This commit is contained in:
parent
bb04d91b08
commit
be6b620457
|
@ -7,7 +7,7 @@ Post.prototype.id = Model.prop('id');
|
|||
Post.prototype.number = Model.prop('number');
|
||||
Post.prototype.discussion = Model.one('discussion');
|
||||
|
||||
Post.prototype.time = Model.prop('time');
|
||||
Post.prototype.time = Model.prop('time', Model.date);
|
||||
Post.prototype.user = Model.one('user');
|
||||
Post.prototype.contentType = Model.prop('contentType');
|
||||
Post.prototype.content = Model.prop('content');
|
||||
|
|
Loading…
Reference in New Issue
Block a user