{"action":"created","issue":{"url":"https://api.github.com/repos/xuchunyang/youdao-dictionary.el/issues/10","repository_url":"https://api.github.com/repos/xuchunyang/youdao-dictionary.el","labels_url":"https://api.github.com/repos/xuchunyang/youdao-dictionary.el/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/xuchunyang/youdao-dictionary.el/issues/10/comments","events_url":"https://api.github.com/repos/xuchunyang/youdao-dictionary.el/issues/10/events","html_url":"https://github.com/xuchunyang/youdao-dictionary.el/issues/10","id":141533379,"number":10,"title":"byte-code: Invalid date: 10-Mar-2046 09:53:43.00 GMT","user":{"login":"futurist","id":159167,"avatar_url":"https://avatars.githubusercontent.com/u/159167?v=3","gravatar_id":"","url":"https://api.github.com/users/futurist","html_url":"https://github.com/futurist","followers_url":"https://api.github.com/users/futurist/followers","following_url":"https://api.github.com/users/futurist/following{/other_user}","gists_url":"https://api.github.com/users/futurist/gists{/gist_id}","starred_url":"https://api.github.com/users/futurist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futurist/subscriptions","organizations_url":"https://api.github.com/users/futurist/orgs","repos_url":"https://api.github.com/users/futurist/repos","events_url":"https://api.github.com/users/futurist/events{/privacy}","received_events_url":"https://api.github.com/users/futurist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-17T09:57:38Z","updated_at":"2016-04-15T10:22:13Z","closed_at":"2016-04-15T10:22:13Z","body":"首次查词没问题, 后续查词出现提示:\r\n\r\n````\r\nContacting host: fanyi.youdao.com:80\r\nbyte-code: Invalid date: 10-Mar-2046 09:53:43.00 GMT [4 times]\r\n````\r\n\r\n无法查询了\r\n"},"comment":{"url":"https://api.github.com/repos/xuchunyang/youdao-dictionary.el/issues/comments/210403897","html_url":"https://github.com/xuchunyang/youdao-dictionary.el/issues/10#issuecomment-210403897","issue_url":"https://api.github.com/repos/xuchunyang/youdao-dictionary.el/issues/10","id":210403897,"user":{"login":"futurist","id":159167,"avatar_url":"https://avatars.githubusercontent.com/u/159167?v=3","gravatar_id":"","url":"https://api.github.com/users/futurist","html_url":"https://github.com/futurist","followers_url":"https://api.github.com/users/futurist/followers","following_url":"https://api.github.com/users/futurist/following{/other_user}","gists_url":"https://api.github.com/users/futurist/gists{/gist_id}","starred_url":"https://api.github.com/users/futurist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futurist/subscriptions","organizations_url":"https://api.github.com/users/futurist/orgs","repos_url":"https://api.github.com/users/futurist/repos","events_url":"https://api.github.com/users/futurist/events{/privacy}","received_events_url":"https://api.github.com/users/futurist/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T10:22:13Z","updated_at":"2016-04-15T10:22:13Z","body":"最近又遇到这个问题, 查了下原来是 [y2038 problem](http://emacs.1067599.n5.nabble.com/Year-2038-problem-with-calendar-Bad-holiday-list-items-td150053.html)\r\n\r\n#1 提到的方法如果cookies大于2038年会返回nil, 我自己重新写了下 `url-cookie-expired-p` 使大于2038年的cookies返回`t`\r\n\r\n如下:\r\n\r\n````\r\n(require-package 'youdao-dictionary)\r\n;; FIX y2038 problem on 32bit PC\r\n;; after load url-cookie.el, replace this func to avoid y2038 problem\r\n(eval-after-load 'url-cookie\r\n  '(defun url-cookie-expired-p (cookie)\r\n     \"Return non-nil if COOKIE is expired.\"\r\n     (let ((exp (url-cookie-expires cookie)) year)\r\n       (and (> (length exp) 0)\r\n            (string-match \"\\\\([1-9][0-9]\\\\{3\\\\}\\\\)\" exp)\r\n            (setq year (match-string 1 exp))\r\n            (if (and year (setq year (string-to-number year)) (>= year 2038)) nil\r\n              (> (float-time) (float-time (date-to-time exp))))\r\n            ))))\r\n````\r\n"}}