Use correct mysql time format