Skip to content

Conversation

@shaundon
Copy link

Using 86400 seconds to advance to tomorrow doesn't work in all scenarios, I've run into this on my app Personal Best WAY too many times. It works most of the time but breaks on days when the clocks go back because the day technically has 25 hours then (90000 seconds). There are probably other edge casey days too but not 100% sure.

This PR instead adds one day. Swift knows about this stuff so it'll account for daylight savings. It's less terse now though :(

Copy link

@Bobcat5360 Bobcat5360 left a comment

Choose a reason for hiding this comment

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

#reviewwithcopilot

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