Fix illegal MySQL timestamp