```arg``` contains the time as well as the name, so this really should be ```opts[0] = toId(opts[0]);```