diff --git a/src/exasol_odbc/dialect.tdd b/src/exasol_odbc/dialect.tdd
index 524bc38..722abfc 100644
--- a/src/exasol_odbc/dialect.tdd
+++ b/src/exasol_odbc/dialect.tdd
@@ -372,7 +372,8 @@
- TO_TIMESTAMP(%1)
+
+ IF REGEXP_INSTR(%1, '^\d\d?:\d\d?:\d\d?(?:\.\d{1,6})?$') > 0 THEN TO_TIMESTAMP('1901-01-31 ' || %1) ELSE TO_TIMESTAMP(%1) ENDIF