Let’s look at the problem first
. The reason for this problem is that moment.js is configured in English, and the repair method is also very simple. Whichever file uses the date and time component, just import it in that component, and the Chinese package of moment.js is enough ( Remember not to import in app.tsx, otherwise it will not take effect)
import 'moment/locale/zh-cn';