8000 InstantTimestampTest test depends on system timezone · Issue #571 · teragrep/pth_10 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

InstantTimestampTest test depends on system timezone #571

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

Open
elliVM opened this issue Apr 23, 2025 · 0 comments
Open

InstantTimestampTest test depends on system timezone #571

elliVM opened this issue Apr 23, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@elliVM
Copy link
Contributor
elliVM commented Apr 23, 2025

Describe the bug
InstantTimestamp uses system timezone by default. This results that the test depends on the timezone where it is run. showed up in github workflow with +2 hour difference to expected values.

Expected behavior
Tests should work in any timezone

How to reproduce
Change timezone before test and run

@BeforeAll public static void setUp() { TimeZone.setDefault(TimeZone.getTimeZone("UTC")); }
Adding this to InstantTimestampTest will show the tests that fail

Software version
8.4.2

Additional context
Failed Run

@elliVM elliVM added the bug Something isn't working label Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0