fixed time to mysql datetime format