The server was run with time zone Asia/Tokyo.
The test program I run twice in two different time zones Europe/Paris Europe/Moscow and has the results of insert:
selected local time: Thu Oct 10 05:00:00 2024
selected utc time: Thu Oct 10 02:00:00 2024
us: 0
selected local time: Thu Oct 10 05:00:00 2024
selected utc time: Thu Oct 10 02:00:00 2024
us: 0
selected local time: Thu Oct 10 05:01:00 2024
selected utc time: Thu Oct 10 02:01:00 2024
us: 0
selected local time: Thu Oct 10 05:01:00 2024
selected utc time: Thu Oct 10 02:01:00 2024
us: 0
selected local time: Thu Oct 10 11:32:57 2024
selected utc time: Thu Oct 10 08:32:57 2024
us: 123456
selected local time: Thu Oct 10 11:33:09 2024
selected utc time: Thu Oct 10 08:33:09 2024
us: 123456
I see that text query (value or TSV format) inserted data in server time zone.
Data that inserted via Client.Insert() has utc time zone. Time zone of text insert and time zone of binary insert is different!
I need unification of time working.
Also will be very good if I can insert data in client local time zone. I did not found way to insert time in client time zone in text formats.
There is output of the client:
SELECT *
FROM test_datetime64
I modified example
inline void DateTime64Example(Client& client) { Block b;
// client.Execute("DROP TEMPORARY TABLE test_datetime64"); }
The server was run with time zone Asia/Tokyo. The test program I run twice in two different time zones Europe/Paris Europe/Moscow and has the results of insert:
selected local time: Thu Oct 10 05:00:00 2024 selected utc time: Thu Oct 10 02:00:00 2024 us: 0 selected local time: Thu Oct 10 05:00:00 2024 selected utc time: Thu Oct 10 02:00:00 2024 us: 0 selected local time: Thu Oct 10 05:01:00 2024 selected utc time: Thu Oct 10 02:01:00 2024 us: 0 selected local time: Thu Oct 10 05:01:00 2024 selected utc time: Thu Oct 10 02:01:00 2024 us: 0 selected local time: Thu Oct 10 11:32:57 2024 selected utc time: Thu Oct 10 08:32:57 2024 us: 123456 selected local time: Thu Oct 10 11:33:09 2024 selected utc time: Thu Oct 10 08:33:09 2024 us: 123456 I see that text query (value or TSV format) inserted data in server time zone. Data that inserted via Client.Insert() has utc time zone. Time zone of text insert and time zone of binary insert is different! I need unification of time working.
Also will be very good if I can insert data in client local time zone. I did not found way to insert time in client time zone in text formats.
There is output of the client: SELECT * FROM test_datetime64
Query id: 560fd02a-cb6c-4303-8947-2c9727cd1793
┌───────────────────────dt64─┐