I recently downloaded Emacs 24.4 and sometimes I see an "invalid date" error in my buffer.

When I am in eww, often I try to click (RET) a link and I get:

error in process sentinel: Invalid date: 01-Jan-2055 00:00:00.00 GMT

I thought it was an eww error, but today I was in c-mode and I saw

Error running timer `url-cookie-write-file': (error "Invalid date: 01-Jan-2055 00:00:00.00 GMT")

How can I fix this? I've not found any useful post with an "invalid date". Thanks!

  • Find out what code you have loaded invokes function url-cookie-write-file from a timer. Use grep. Or bisect your init file recursively until you narrow it down to the culprit code.
    – Drew
    Dec 17 '14 at 2:40
  • Or use toggle-debug-on-error, it should give you a backtrace which will tell you where this function is called.
    – T. Verron
    Dec 17 '14 at 13:23
  • 1
    Emacs knows something that we don't.
    – phils
    Dec 23 '14 at 6:51


punchagan writes:

This bug seems to have been fixed on Emacs master. As a work around you could add the latest code of url-cookie-expired-p to your .emacs

(defun url-cookie-expired-p (cookie)
  "Return non-nil if COOKIE is expired."
  (let ((exp (url-cookie-expires cookie)))
    (and (> (length exp) 0)
     (condition-case ()
         (> (float-time) (float-time (date-to-time exp)))
       (error nil)))))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.