Skip to content

Commit 287a8b7

Browse files
Fix timezone issue in ClickHouse timestamp column casting
1 parent 1f68112 commit 287a8b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macros/utils/data_types/cast_column.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
{%- macro clickhouse__edr_cast_as_timestamp(timestamp_field) -%}
2525
coalesce(
26-
parseDateTimeBestEffortOrNull(toString({{ timestamp_field }})),
27-
toDateTime('1970-01-01 00:00:00')
26+
parseDateTimeBestEffortOrNull(toString({{ timestamp_field }}), 'UTC'),
27+
toDateTime('1970-01-01 00:00:00', 'UTC')
2828
)
2929
{%- endmacro -%}
3030

0 commit comments

Comments
 (0)