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

fix(dev): display localetime correctly #1310

Merged
merged 1 commit into from Jan 3, 2021
Merged

fix(dev): display localetime correctly #1310

merged 1 commit into from Jan 3, 2021

Conversation

CHOYSEN
Copy link
Contributor

@CHOYSEN CHOYSEN commented Jan 3, 2021

When i update file, the logger print undefined [vite] hmr update /src/App.vue

const date = new Date();
console.log(date.toLocaleString('en-US')); // 03/01/2021, 12:46:07 PM
console.log(date.toLocaleString('zh-CN')); // 2021/1/3 下午12:46:07

@underfin underfin merged commit 06663a7 into vitejs:main Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants