Skip to content

Conversation

@martint
Copy link
Member

@martint martint commented May 11, 2023

When the number of nanoseconds in the current instant is such that it needs to round up to the nearest millisecond, the calculation doesn't properly compute the carryover.

Release notes

(x) Release notes are required, with the following suggested text:

# General
* Fix failure when invoking `current_timestamp`. ({issue}`17455`)

When the number of nanoseconds in the current instant is such that
it needs to round up to the nearest millisecond, the calculation
doesn't properly compute the carryover.
@cla-bot cla-bot bot added the cla-signed label May 11, 2023
@hashhar hashhar requested a review from vlad-lyutenko May 11, 2023 07:14
@martint
Copy link
Member Author

martint commented May 12, 2023

CI hit #16933

}

public static LongTimestampWithTimeZone longTimestampWithTimeZone(long precision, Instant start, TimeZoneKey timeZoneKey)
{
Copy link
Member

Choose a reason for hiding this comment

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

No tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants