As momentjs is not been actively maintained and it has a big size, we replaced it with dayjs in this PR.
A more direct reason we need to replace it is that momentjs prints unnecessary error logs when it is initialized with a wrong formatted date string. By using dayjs we can avoid this.
As momentjs is not been actively maintained and it has a big size, we replaced it with dayjs in this PR.
A more direct reason we need to replace it is that momentjs prints unnecessary error logs when it is initialized with a wrong formatted date string. By using dayjs we can avoid this.