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 dayssince sometimes being off by 1 day depending on timezone #484

Merged
merged 1 commit into from Jun 15, 2022

Conversation

DanBeard
Copy link
Contributor

dayssince pulled UTC date for now() instead of using localtime(). This would sometimes cause all the days to be one off (e.g. "today" -> "yesterday").

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 99.172% when pulling dcc1275 on DanBeard:fix_dayssince_tz into f47fbce on babybuddy:master.

@DanBeard DanBeard mentioned this pull request Jun 15, 2022
@cdubz
Copy link
Member

cdubz commented Jun 15, 2022

Nice catch. Thanks!

@cdubz cdubz merged commit 7d7982b into babybuddy:master Jun 15, 2022
@cdubz cdubz added the bug Reports of unexpected problems or errors label Jun 15, 2022
@cdubz cdubz added this to the 1.11.2 milestone Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reports of unexpected problems or errors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants