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

Use UTC timestamp in PostgresQueueListenerTest #361

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VerstraeteBert
Copy link
Contributor

@VerstraeteBert VerstraeteBert commented Jan 13, 2025

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

All timestamps generated in the DB are based on the current time (local time), while we use System.currentTimeMillis(), in the code to compare, which generates a UTC epoch ms offset. This change is needed for me to run this test successfully locally.

It does have me a bit worried that current_timestamp is used everywhere in the Conductor PG DAO code. While in the Java code, UTC epoch is used. Haven't seen this be a problem in practice, though. I guess most DBs are set to use UTC as its machine time anyways.

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.

1 participant