-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
gradle: set user timezone to UTC in all tests #31305
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Testing on:
edit: all green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea what the side effects will be... but I love it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ensures that Java interprets all timestamps as UTC when running the unit tests. The goal is to make the tests deterministic when using timestamps to avoid it passing on one machine, but failing on another because the timezones in use are different. It will not impact the code at runtime, though this is something to consider setting in general to make it easy for our customers to understand how we treat timestamps. |
Fixes #31060.