Skip to content

Use 2-digit format for day and month in "built at" output #6670

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

Merged
merged 1 commit into from
Mar 6, 2018
Merged

Use 2-digit format for day and month in "built at" output #6670

merged 1 commit into from
Mar 6, 2018

Conversation

SimenB
Copy link
Contributor

@SimenB SimenB commented Mar 5, 2018

What kind of change does this PR introduce?

refactor

Did you add tests for your changes?
nope. Made this change on Github, hoping no tests fail 🙂

If relevant, link to documentation update:

Summary

This format looks better, at least with Norwegian locale.

new Date().toLocaleDateString("nb-NO");
// "5.3.2018"
new Date().toLocaleDateString("nb-NO", { day: "2-digit", month: "2-digit", year: "numeric" });
// "05.03.2018"

Without this change:
image

Does this PR introduce a breaking change?
Shouldn't 🤞

Other information

@SimenB SimenB changed the title Update Stats.js Use 2-digit format for day and month in "built at" output Mar 5, 2018
@webpack-bot
Copy link
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@sokra sokra merged commit edbb6f6 into webpack:master Mar 6, 2018
@sokra
Copy link
Member

sokra commented Mar 6, 2018

Thanks

@sokra
Copy link
Member

sokra commented Apr 9, 2018

This doesn't work.

see #6982

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

Successfully merging this pull request may close these issues.

3 participants