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

Fix all-day database entries with seconds #202

Open
HALtheWise opened this issue Apr 30, 2018 · 1 comment
Open

Fix all-day database entries with seconds #202

HALtheWise opened this issue Apr 30, 2018 · 1 comment
Projects

Comments

@HALtheWise
Copy link
Contributor

According to #201 , it should no longer be possible to create an all-day event starting or ending any time except midnight. If any of those currently exist in the database, we should fix them.

@osteele osteele added this to Product Backlog in Roadmap May 3, 2018
@osteele
Copy link
Contributor

osteele commented May 7, 2018

There's 36 of these in production db.getCollection('event').find({$where : function() { return this.allDay && this.end.getSeconds() != 0 }}). getMinutes() != 0 returns presumably the same 36; getHours() != 0 returns 35 because _id=5978bfa17412b80011ab821f "Students begin arriving after 12pm" ends a second shy of 1am EST.

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

No branches or pull requests

2 participants