use connection.ops.date_trunc_sql for portability