Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 640426b

Browse files
authored
Merge pull request ClickHouse#291 from Yullin/timezone-pr
use local timezone when insert into clickhouse
2 parents 9b36850 + 23d352d commit 640426b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/column/datetime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ func (dt *DateTime) parse(value string) (int64, error) {
8282
time.Time(tv).Hour(),
8383
time.Time(tv).Minute(),
8484
time.Time(tv).Second(),
85-
0, time.UTC,
85+
0, time.Local, //use local timzone when insert into clickhouse
8686
).Unix(), nil
8787
}

0 commit comments

Comments
 (0)