mirror of
https://github.com/flarum/framework.git
synced 2025-03-03 19:17:57 +08:00
Prevent moment deprecation warning
This commit is contained in:
parent
7fe0fc46af
commit
03b47c3591
@ -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…
x
Reference in New Issue
Block a user