Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1411
What changes did you make and why did you make them ?
The bug we were experiencing was because events were being based off of the
event.date
property rather than theevent.startTime
property. When thecreateAndFilterEvents
worker ran, it was using old data that the user wasn't setting within the app.There are already helper functions made on the front end to transfer a timestamp from
6:00 PM
to a valid Date object. The recurring events model has these saved in theory at the right spots, but it is also recommended that project managers update their start times of their events within the app.If they wish to keep their start times, please update them twice eg
7:00 PM
to6:00 PM
and back to7:00 PM
. This way we can ensure that the correct startTime is saved in thedb
.