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
Locale formatting not working. #3286
Comments
I found the issue, apparently My fix:
|
Oops, didn't mean to label that a bug. See #3080, which might be related. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm getting a weird error from moment.js during
moment(..).format('dd DD. MMM YYYY')
.Sometimes it seems to work fine but in other cases it throws a
TypeError
(see below).I tried to track down the underlying problem with no success, as far as I can see it's related to locales. Hence I used the
with-locales
version (previously I included only the necessary locales).I am using the latest (
2.14.1
)min/moment-with-locales.js
from bower. Older versions such as2.11
also didn't work properly.Which is thrown here:
Due to
this._locale._weekdaysMin = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]
being an array.This is the moment object I'm trying to format: https://gist.github.com/trichner/f2d3ff0a7e6c2b3d668ded52cf69f245#file-gistfile1-txt
Is there anything I missed? Or could it be a library bug?
The text was updated successfully, but these errors were encountered: