Describe the bug
Functions toDateTime & toDateTime64 give a different result.
How to reproduce
ClickHouse server version 20.3.3 revision 54433.
SELECT timezone()
ββtimezone()βββββ
β Europe/Moscow β
βββββββββββββββββ
SELECT toDateTime(today(), 'UTC')
ββtoDateTime(today(), 'UTC')ββ
β 2020-03-20 00:00:00 β
ββββββββββββββββββββββββββββββ
SELECT toDateTime64(today(), 0, 'UTC')
ββtoDateTime64(today(), 0, 'UTC')ββ
β 2020-03-19 21:00:00 β
βββββββββββββββββββββββββββββββββββ
Π‘Π‘ @Enmk
Will make sure it is fixed with https://github.com/ClickHouse/ClickHouse/pull/9574
Will make sure it is fixed with #9574
Ooops, the issue is still there and requires separate fix.
Most helpful comment
Will make sure it is fixed with https://github.com/ClickHouse/ClickHouse/pull/9574