Commit 2336b2fa8db4e61fc9f65977ef61db67c0126e3b

Authored by zhangz
1 parent 2ac100ba

处理日期会被语言影响问题;

Showing 1 changed file with 1 additions and 1 deletions
src/mes/indexMes/index.js
... ... @@ -524,7 +524,7 @@ const HeaderConponent = () => {
524 524 useEffect(() => {
525 525 const getTime = () => {
526 526 const currentTime = moment().format("YYYY-MM-DD HH:mm:ss");
527   - const currentWeek = moment().weekday();
  527 + const currentWeek = moment().day();
528 528 setTime(`${currentTime}${" "}${" "}${sunTitle}${weekday[currentWeek]}`);
529 529 };
530 530  
... ...