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

Firefox is not sorting correctly when format contains spaces or colons #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lode
Copy link

@lode lode commented Oct 23, 2016

When format is something alike DD-MM-YYYY HH:mm I can't sort correctly. Sorting seems to happens on as if it is a number (01-01 ... 01-02 ... 02-01) instead of as a date.

This happens in Firefox. At least Chrome doesn't seem to be affected.

@DataTables
Copy link
Collaborator

Can you give me a link to a page showing the issue please? I don't quite get why Moment wouldn't be parsing a date format that it is given. It sounds like you might be giving it a date which isn't in the format specified?

@lode
Copy link
Author

lode commented Oct 25, 2016

Not out of the box, the code is used internally. I can see if I can make a clean example somewhere.

However, as far as I understand, object properties in javascript can not contain spaces and colons. See https://mothereff.in/js-variables#foo%20bar and https://mothereff.in/js-variables#foo%3Abar.

@DataTables
Copy link
Collaborator

I'm fairly certain they can - example.

@DataTables
Copy link
Collaborator

Going to close for now as no test case provided. If you are still having issues with this, please feel free to repopen with a link to a test case.

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.

2 participants