Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Week-view is not ordered correctly by event's time #443
Hello and thank you for a plug-in which was an ease to start using and is the best calendar plug-in I've found so far for Angular.
I've got this weird week-view bug (or might there be something I'm just missing?).
Everything is fine in the 'month' view, the data seems to be ordered by time but once I switch to the 'week' view, something weird happens. And the funny thing is that the events have proper $id's set on them. You can see this by opening dev tools and clicking each event and it will console.log() the event.
My data is already order by date and time in the backend and is basically just data from a reservation calendar. You can find a snapshot of a requests from 'data.json', I've also validated it.
I'm currently toggling moment to a Finnish locale (though the problem persists if the locale is not changed).
Anyways, here's the plunker as requested
Ok, I figured it out -- the other browsers gave me a clue. It's the date format from the backend. For some reason Chrome is ok with
I was going to cut a new release yesterday but I found a regression when testing this against our app at work which I'm fixing as we speak and then I'll cut a new release :)
You can grab a pre-release from npm, it's under the 0.24.0-beta.0 tag: https://firstname.lastname@example.org