Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] [Component] [date-picker] date-picker 中文国际化每一周的第一天不是周一 #8007

Closed
izhaoqing opened this issue May 31, 2022 · 3 comments
Labels

Comments

@izhaoqing
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.2.33
  • Element Plus Version: 2.2.2
  • Browser / OS: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • el-date-picker

Reproduction Link

CodeSandbox

Steps to reproduce

日期面板是从周一开始的

What is Expected?

从周一开始

What is actually happening?

从周日开始

Additional comments

(empty)

@iamkun
Copy link
Contributor

iamkun commented May 31, 2022

Please set the Day.js locale manually at this time.

import dayjs from 'dayjs'
import dayjsZhCnLocale from 'dayjs/locale/zh-cn'
dayjs.locale(dayjsZhCnLocale)

I'll check further to see if this cloud can be done in "ConfigProvider" automatically.

@ghost
Copy link

ghost commented Jun 2, 2022

每周的第一天就是周日啊

@diyxiaoshitou
Copy link

此时请手动设置 Day.js 语言环境。

import dayjs from 'dayjs'
import dayjsZhCnLocale from 'dayjs/locale/zh-cn'
dayjs.locale(dayjsZhCnLocale)

我将进一步检查是否可以在“ConfigProvider”中自动完成此云。

不生效啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants