MySQL & MariaDB error 4122 ER_BAD_TIMESTAMP_FORMAT
Same number, two different errors. 4122 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLInvalid timestamp format in … udf
MariaDBConflicting FOR SYSTEM_TIME clauses in WITH RECURSIVE