1
0
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:
David Sevilla Martín
2020-06-30 20:33:00 -04:00
committed by GitHub
parent 640cc0989b
commit 8dd5420405
10 changed files with 31 additions and 29 deletions

View File

@@ -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) {