Skip to content

Commit 922021f

Browse files
authored
Try fix handling wrong dates (#99)
1 parent 9696a08 commit 922021f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql_ch_replicator/clickhouse_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def insert(self, table_name, records, table_structure: TableStructure = None):
192192
try:
193193
e.timestamp()
194194
except ValueError:
195-
e = 0
195+
e = datetime.datetime(1970, 1, 1)
196196
if table_structure is not None:
197197
field: TableField = table_structure.fields[i]
198198
is_datetime = (

0 commit comments

Comments
 (0)