[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forward: Bug#177243: w3m-el: cookies broken for Australian XEmacsusers
- From: TSUCHIYA Masatoshi <tsuchiya@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 19 Jan 2003 21:59:01 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 04549
>> On Sun, 19 Jan 2003 00:04:03 +0900
>> ukai@debian.or.jp (Fumitoshi UKAI) said as follows:
>w3m.el chooses the wrong implementation of w3m-time-parse-string,
>since the test fails. The test fails due to a misunderstanding over
>the timezone "EST", but otherwise the original version is good (the
>later version doesn't work at all).
とりあえず,タイムゾーンに依存しないようにチェック部分を修正してみまし
たが,どうでしょうか.
--
土屋 雅稔 ( TSUCHIYA Masatoshi )
diff -u -u -r1.776 w3m.el
--- w3m.el 14 Jan 2003 04:41:47 -0000 1.776
+++ w3m.el 19 Jan 2003 08:08:57 -0000
@@ -1912,11 +1916,8 @@
;; When buggy timezone.el is loaded, parse-time.el will be used
;; instead of timezone.el.
-(unless (let* ((x (current-time))
- (system-time-locale "C")
- (y (w3m-time-parse-string
- (format-time-string "%A, %d-%b-%y %T %Z" x))))
- (and (eq (car x) (car y)) (eq (nth 1 x) (nth 1 y))))
+(unless (equal (w3m-time-parse-string "Thursday, 01-Jan-1970 00:00:00 GMT")
+ '(0 0))
(ignore-errors
(require 'parse-time))
(defun w3m-time-parse-string (string)