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: address timezone-based flakiness #13858

Closed
wants to merge 1 commit into from
Closed

Conversation

benmccann
Copy link
Contributor

The formats last week test would consistently fail on my machine and @jrasm91's machine because of our timezone. Vite mocks the system time, but we all keep our machine time zones. That means .startOf('day') returns differently based on which machine it runs on. I'm not sure why that logic was there. If you want to know if something happened in the past day or past 6 days, including that just makes the logic wrong as far as I can tell.

@benmccann benmccann closed this Oct 31, 2024
@benmccann benmccann deleted the fix-failing-test branch October 31, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant