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

CS locale 'l' longDateFormat is wrong #4198

Closed
lukesahula opened this issue Oct 2, 2017 · 3 comments
Closed

CS locale 'l' longDateFormat is wrong #4198

lukesahula opened this issue Oct 2, 2017 · 3 comments
Labels

Comments

@lukesahula
Copy link

There should be no white spaces between the numbers in the 'l' longDateFormat.
D.M.YYYY instead of D. M. YYYY,

@lukesahula lukesahula changed the title CS locale 'l' longdate format is wrong CS locale 'l' longDateFormat is wrong Oct 2, 2017
@marwahaha
Copy link
Member

marwahaha commented Dec 19, 2017

@lukesahula is this true for other formats too?

moment().format('L')
"19.12.2017"
moment().format('LL')
"19. prosinec 2017"
moment().format('LLL')
"19. prosinec 2017 3:20"
moment().format('LLLL')
"úterý 19. prosinec 2017 3:20"
moment().format('l')
"19. 12. 2017"
moment().format('ll')
"19. pro 2017"
moment().format('lll')
"19. pro 2017 3:20"
moment().format('llll')
"út 19. pro 2017 3:20"

@petrbela any thoughts ?

@petrbela
Copy link
Contributor

@lukesahula See #2016 (comment)

According to the norm ČSN 01 6910, it can be either 23. 2. 2016 (with spaces) or 23.02.2016 (with padded 0 without spaces). format('l') produces the former, and format('L') the latter.

@marwahaha
Copy link
Member

Since both options are available, I will close this.

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