mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
Switch from 'moment' to 'dayjs' (#2219)
* Switch from 'moment' to 'dayjs' * Use humanize code from duration plugin (without actual plugin) for time lapsed events
This commit is contained in:
committed by
GitHub
parent
640cc0989b
commit
8dd5420405
@@ -239,7 +239,7 @@ export default class PostStreamScrubber extends Component {
|
||||
|
||||
this.index = index;
|
||||
this.visible = visible;
|
||||
this.description = period ? moment(period).format('MMMM YYYY') : '';
|
||||
this.description = period ? dayjs(period).format('MMMM YYYY') : '';
|
||||
}
|
||||
|
||||
config(isInitialized, context) {
|
||||
|
Reference in New Issue
Block a user