Fixes times.toSeconds to handle hours and minutes correctly.