Commit 2336b2fa8db4e61fc9f65977ef61db67c0126e3b
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,7 +524,7 @@ const HeaderConponent = () => { | ||
| 524 | useEffect(() => { | 524 | useEffect(() => { |
| 525 | const getTime = () => { | 525 | const getTime = () => { |
| 526 | const currentTime = moment().format("YYYY-MM-DD HH:mm:ss"); | 526 | const currentTime = moment().format("YYYY-MM-DD HH:mm:ss"); |
| 527 | - const currentWeek = moment().weekday(); | 527 | + const currentWeek = moment().day(); |
| 528 | setTime(`${currentTime}${" "}${" "}${sunTitle}${weekday[currentWeek]}`); | 528 | setTime(`${currentTime}${" "}${" "}${sunTitle}${weekday[currentWeek]}`); |
| 529 | }; | 529 | }; |
| 530 | 530 |