fix: day straddle detection not always working#366
Open
alyxbb wants to merge 1 commit intodevelopmentfrom
Open
fix: day straddle detection not always working#366alyxbb wants to merge 1 commit intodevelopmentfrom
alyxbb wants to merge 1 commit intodevelopmentfrom
Conversation
Comment on lines
+58
to
+60
| dayBoundary := 0 | ||
| adjustedStart := s.Start.Add(time.Hour * time.Duration(-dayBoundary)) | ||
| adjustedEnd := s.Finish.Add(time.Hour * time.Duration(-dayBoundary)) |
Member
There was a problem hiding this comment.
Bit confused by this - why is there a variable that's always 0, and why are we adding zero hours to the start/finish time?
Contributor
Author
There was a problem hiding this comment.
I copied the function from above and modified it badly. I can fix it if needed. Tbh I might rewrite the schedule, the code for it is a mess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
day stradle detection on mobile view was based on if a show crossed over 6am not midnight due to that being how it works for desktop view