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

ISSUE-160: fix(test/utils): migrate from java.util.Date to java.time.Instant to resolve fabric8 crash #161

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

jiridanek
Copy link
Collaborator

@jiridanek jiridanek commented Oct 17, 2024

Instants are the recommended way to deal with time and date in Java 8+.

The problem was caused by the wrongly encoded + in the timestamp string when it's a part of a URL. Because Instants represent time in UTC timezone (Z), we don't get the timezone part of timestamp now (+02:00), so there's no plus problem.

Fixes #160

…me.Instant` to resolve fabric8 crash

Instants are the recommended way to deal with time and date in Java 8+.

The problem was caused by the wrongly encoded `+` in the timestamp string when it's a part of a URL.
Because Instants represent time in UTC timezone (`Z`), we don't get the timezone part of timestamp now (`+02:00`), so there's no plus problem.
@jiridanek jiridanek marked this pull request as ready for review October 17, 2024 13:47
@kornys kornys enabled auto-merge (squash) October 17, 2024 14:59
@kornys kornys merged commit 1330deb into skodjob:main Oct 17, 2024
3 checks passed
@jiridanek jiridanek deleted the jd_instant branch October 17, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants