Skip to content

Conversation

@alyxbb
Copy link
Contributor

@alyxbb alyxbb commented Jun 10, 2024

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

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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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.

3 participants