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

Fix #1125 NatsJetStreamMetaData timestamp timezone #1126

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Conversation

mrmx
Copy link
Contributor

@mrmx mrmx commented Apr 21, 2024

Fix issue #1125 NatsJetStreamMetaData timestamp parsed with incorrect timezone unable to convert back to UTC

@scottf
Copy link
Contributor

scottf commented Apr 22, 2024

@mrmx Good catch, thank you for the fix.

Copy link
Contributor

@scottf scottf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do 2 things...

1. Can you fix line 27 of NatsJetStreamMetaData.java from

private static final long NANO_FACTOR = 10_00_000_000;

to

private static final long NANO_FACTOR = 1_000_000_000;

2. Can you refactor lines 105-111 into DateTimeUtils as a function like parseTimestamp

Also, for future PR's can you please verify your commits.

Copy link
Contributor

@scottf scottf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@scottf scottf merged commit 6f91621 into nats-io:main Apr 22, 2024
1 check passed
@mrmx mrmx deleted the fix1125 branch April 23, 2024 16:25
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.

2 participants