fix hms to ms