Skip to content

bug: timezone mismatch by clickhouse and web #11384

Description

@hanjoo-kim-tossbank

Describe the bug

I want to use the existing clickhouse in a custom timezone. If clickhouse's default timezone is set to the other than UTC, the langfuse UI describes wrong timestamp.

For example, the clickhouse is set to KST (UTC+9) and a certain trace was created at 01:00 in UTC.
Then the clickhouse stored that trace in 10:00 in KST by the default timezone setting.
Later, langfuse UI would fetch the trace from the clickhouse and its timestamp is translated into UTC, not KST. Finally, it applies local timezone in web client once again (19:00 in KST)

Steps to reproduce

  1. Clickhouse setting: default time zone to KST
  2. Langfuse web working on UTC timezone
  3. Store traces in UTC
  4. View in langfuse UI

Langfuse Cloud or self-hosted?

Self-hosted

If self-hosted, what version are you running?

3.140.0

SDK and integration versions

No response

Additional information

If the clickhouse client enables use_client_time_zone, the clickhouse server may return the traces with the timestamp in client timezone (UTC): https://github.com/ClickHouse/clickhouse-js/blob/8f2add94dc9e064d96b94dcb0dac019d7286e9c0/packages/client-common/src/settings.ts#L1555C3-L1555C23

Are you interested in contributing a fix for this bug?

Yes

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions