mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 08:13:39 +08:00
Prevent moment deprecation warning
This commit is contained in:
parent
ce742e416b
commit
8095809c3f
|
@ -32,7 +32,7 @@ export default class StreamItem extends Component {
|
|||
'data-end': item.end
|
||||
};
|
||||
if (!gap) {
|
||||
attributes['data-time'] = item.post.time();
|
||||
attributes['data-time'] = item.post.time().toISOString();
|
||||
attributes['data-number'] = item.post.number();
|
||||
} else {
|
||||
attributes['config'] = (element) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user