Get rid of SQL timestamp casts where text works just fine