Skip to content

Conversation

@RasmusSkytte
Copy link
Contributor

@RasmusSkytte RasmusSkytte commented Oct 30, 2025

Intent

Fixes #203

Approach

All timestamps created with db_timestamp() are now parsed to POSIXct (assuming the local timezone) and then passed to the databases for translation to corresponding formats.

Tests were failing on both diseasystore and on diseasy, so I created two PRs verify this fix works over there.

Linked to:

Known issues

N/A

Checklist

  • The PR passes all local unit tests
  • I have documented any new features introduced
  • If the PR adds a new feature, please add an entry in NEWS.md
  • A reviewer is assigned to this PR

@RasmusSkytte RasmusSkytte self-assigned this Oct 30, 2025
@RasmusSkytte RasmusSkytte added the bug Something isn't working label Oct 30, 2025
@RasmusSkytte RasmusSkytte changed the title Tracking timestamp issue Timestamp issue for duckdb Oct 30, 2025
@RasmusSkytte RasmusSkytte marked this pull request as ready for review October 30, 2025 19:10
@RasmusSkytte RasmusSkytte requested review from a team, LasseEngboChr, SofiaOtero and kaare-gr and removed request for a team October 30, 2025 19:10
@RasmusSkytte RasmusSkytte marked this pull request as draft October 30, 2025 19:44
@RasmusSkytte RasmusSkytte force-pushed the fix/duckdb-db_timestamp branch from cde1c73 to 79705c7 Compare October 31, 2025 12:52
@RasmusSkytte RasmusSkytte force-pushed the fix/duckdb-db_timestamp branch from e92dc42 to 81ee875 Compare November 3, 2025 22:42
@RasmusSkytte RasmusSkytte changed the title Timestamp issue for duckdb Parse all timestamps to POSIXct Nov 4, 2025
@RasmusSkytte RasmusSkytte force-pushed the fix/duckdb-db_timestamp branch from 70f9c9d to cd171da Compare November 4, 2025 11:57
@RasmusSkytte RasmusSkytte force-pushed the fix/duckdb-db_timestamp branch from ccc83ee to ede21e9 Compare November 4, 2025 12:23
@RasmusSkytte RasmusSkytte marked this pull request as ready for review November 5, 2025 11:32
Copy link
Contributor

@LasseEngboChr LasseEngboChr left a comment

Choose a reason for hiding this comment

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

We keep enforcing the use of the system timezone - we may consider a future improvement that can handle e.g. UTC as reference tz.

@RasmusSkytte RasmusSkytte merged commit 8972bb7 into main Jan 5, 2026
33 checks passed
@RasmusSkytte RasmusSkytte deleted the fix/duckdb-db_timestamp branch January 5, 2026 10:49
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

Successfully merging this pull request may close these issues.

Failing tests on duckdb

3 participants