The function `date-to-time' will fail if the argument if after 19-Jan-2038 03:14:07 GMT. It doesn't seem documented everywhere (unless the 'Year 2038 problem' is assumed knowledge). I don't think I can actually fix it. But I wrote a little patch to at least make it clear in the doc string.