Skip to content

Conversation

@staticlibs
Copy link
Collaborator

This PR fixes the problem with converting TIMESTAMP values into LocalDateTime where, when micros/nanos part was present, the calculation may have been shifted by 1 second.

Fixes: #336

This PR fixes the problem with converting `TIMESTAMP` values into
`LocalDateTime` where, when micros/nanos part was present, the
calculation may have been shifted by 1 second.

Fixes: duckdb#336
@staticlibs staticlibs merged commit 830df35 into duckdb:main Sep 15, 2025
9 checks passed
@staticlibs staticlibs deleted the second_shift branch September 15, 2025 21:37
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Sep 15, 2025
This is a backport of the PR duckdb#377 to `v1.4-andium` stable branch.

This PR fixes the problem with converting `TIMESTAMP` values into
`LocalDateTime` where, when micros/nanos part was present, the
calculation may have been shifted by 1 second.

Fixes: duckdb#336
staticlibs added a commit that referenced this pull request Sep 15, 2025
This is a backport of the PR #377 to `v1.4-andium` stable branch.

This PR fixes the problem with converting `TIMESTAMP` values into
`LocalDateTime` where, when micros/nanos part was present, the
calculation may have been shifted by 1 second.

Fixes: #336
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.

Timestamps before epoch with micros/nanos part are shifted by 1s

1 participant