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

BFD-3745: Force UTC everywhere #2498

Merged
merged 6 commits into from
Dec 4, 2024
Merged

BFD-3745: Force UTC everywhere #2498

merged 6 commits into from
Dec 4, 2024

Conversation

aschey-forpeople
Copy link
Contributor

@aschey-forpeople aschey-forpeople commented Nov 20, 2024

JIRA Ticket:
BFD-3745

What Does This PR Do?

This change sets TZ=UTC everywhere we launch a JVM process to ensure consistency with date operations. Notably this fixes the following issues:

  • Timestamps shown in the server timezone instead of UTC
  • SQL connections using local time (causes issues with some SQL queries that perform date math)
  • When clients supply the _lastUpdated parameter without specifying a timezone, it currently defaults to the server timezone which could produce unexpected results

What Should Reviewers Watch For?

If you're reviewing this PR, please check for these things in particular:

What Security Implications Does This PR Have?

Please indicate if this PR does any of the following:

  • Adds any new software dependencies

  • Modifies any security controls

  • Adds new transmission or storage of data

  • Any other changes that could possibly affect security?

  • I have considered the above security implications as it relates to this PR. (If one or more of the above apply, it cannot be merged without the ISSO or team security engineer's (@sb-benohe) approval.)

Validation

Have you fully verified and tested these changes? Is the acceptance criteria met? Please provide reproducible testing instructions, code snippets, or screenshots as applicable.

Tested the server locally and in an ephemeral environment to ensure the setting took effect.

@aschey-forpeople aschey-forpeople marked this pull request as ready for review November 21, 2024 21:39
dondevun
dondevun previously approved these changes Nov 25, 2024
dondevun
dondevun previously approved these changes Dec 2, 2024
@aschey-forpeople aschey-forpeople merged commit 232552b into master Dec 4, 2024
6 checks passed
@aschey-forpeople aschey-forpeople deleted the BFD-3745 branch December 4, 2024 17:12
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