Skip to content

DuckDB now()::TIMESTAMP switches from UTC to local time once ICU loads #212

Closed

Description

@jrosskopf

Within one flapi process, SELECT now()::TIMESTAMP returns UTC until any query autoloads the ICU extension
(e.g. now() AT TIME ZONE 'UTC'); afterwards every now()::TIMESTAMP returns local time until restart. A TIMESTAMP cursor
written by flapi can therefore jump by the UTC offset mid-run and silently skip rows in an incremental cache.
Workaround (documented in flapi-cache-design): duckdb: {TimeZone: UTC}.
Proposal: default the DuckDB TimeZone setting to UTC unless the user sets it, and log the effective zone at startup.

Found while working on #211 (Claude Code plugin); not fixed there.

Activity

  1. jrosskopf commented on Nov 21, 2026

    @jrosskopf
    ContributorAuthor

    Fixed and merged in #230 (real-binary integration tests under test/integration/).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions