From: yamaoka Date: Thu, 19 Jul 2001 02:11:53 +0000 (+0000) Subject: * gnus-vers.el (gnus-revision-number): Increment to 03. X-Git-Tag: t-gnus-6_15_3-03 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=97c467a587005d2679f6e95cf5546b148e99799a;p=elisp%2Fgnus.git- * gnus-vers.el (gnus-revision-number): Increment to 03. * nntp.el (nntp-request-newgroups): Use UTC date for NEWGROUPS command. * gnus-start.el (gnus-find-new-newsgroups): Use `message-make-date' instead of `current-time-string'. (gnus-ask-server-for-new-groups): Ditto. (gnus-check-first-time-used): Ditto. --- diff --git a/ChangeLog b/ChangeLog index 5bdbb2b..c1b6a60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2001-07-19 Katsumi Yamaoka + + * lisp/gnus-vers.el (gnus-revision-number): Increment to 03. + + * lisp/nntp.el (nntp-request-newgroups): Use UTC date for + NEWGROUPS command. + + * lisp/gnus-start.el (gnus-find-new-newsgroups): Use + `message-make-date' instead of `current-time-string'. + (gnus-ask-server-for-new-groups): Ditto. + (gnus-check-first-time-used): Ditto. + 2001-07-12 Katsumi Yamaoka * lisp/message.el (message-yank-original): Unwind-protect while diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el index 4839e7d..b92e1d1 100644 --- a/lisp/gnus-start.el +++ b/lisp/gnus-start.el @@ -1040,7 +1040,7 @@ for new groups, and subscribe the new groups as zombies." (gnus-message 5 "Looking for new newsgroups...") (unless gnus-have-read-active-file (gnus-read-active-file)) - (setq gnus-newsrc-last-checked-date (current-time-string)) + (setq gnus-newsrc-last-checked-date (message-make-date)) (unless gnus-killed-hashtb (gnus-make-hashtable-from-killed)) ;; Go though every newsgroup in `gnus-active-hashtb' and compare @@ -1105,7 +1105,8 @@ for new groups, and subscribe the new groups as zombies." (and regs (cdar regs)))))) (defun gnus-ask-server-for-new-groups () - (let* ((date (or gnus-newsrc-last-checked-date (current-time-string))) + (let* ((new-date (message-make-date)) + (date (or gnus-newsrc-last-checked-date new-date)) (methods (cons gnus-select-method (nconc (when (gnus-archive-server-wanted-p) @@ -1115,7 +1116,6 @@ for new groups, and subscribe the new groups as zombies." gnus-check-new-newsgroups) gnus-secondary-select-methods)))) (groups 0) - (new-date (current-time-string)) group new-newsgroups got-new method hashtb gnus-override-subscribe-method) (unless gnus-killed-hashtb @@ -1191,7 +1191,7 @@ for new groups, and subscribe the new groups as zombies." (unless (gnus-read-active-file-p) (let ((gnus-read-active-file t)) (gnus-read-active-file))) - (setq gnus-newsrc-last-checked-date (current-time-string)) + (setq gnus-newsrc-last-checked-date (message-make-date)) ;; Subscribe to the default newsgroups. (let ((groups (or gnus-default-subscribed-newsgroups gnus-backup-default-subscribed-newsgroups)) diff --git a/lisp/gnus-vers.el b/lisp/gnus-vers.el index 748bf43..5460d8f 100644 --- a/lisp/gnus-vers.el +++ b/lisp/gnus-vers.el @@ -34,7 +34,7 @@ (require 'product) (provide 'gnus-vers) -(defconst gnus-revision-number "02" +(defconst gnus-revision-number "03" "Revision number for this version of gnus.") ;; Product information of this gnus. diff --git a/lisp/nntp.el b/lisp/nntp.el index 092e8a2..5380fd1 100644 --- a/lisp/nntp.el +++ b/lisp/nntp.el @@ -833,11 +833,22 @@ newsgroups that match the regexp." (nntp-possibly-change-group nil server) (save-excursion (set-buffer nntp-server-buffer) - (prog1 - (nntp-send-command - "^\\.\r?\n" "NEWGROUPS" - (format-time-string "%y%m%d %H%M%S" (date-to-time date))) - (nntp-decode-text)))) + (let* ((time (date-to-time date)) + (ls (- (cadr time) (nth 8 (decode-time time))))) + (cond ((< ls 0) + (setcar time (1- (car time))) + (setcar (cdr time) (+ ls 65536))) + ((>= ls 65536) + (setcar time (1+ (car time))) + (setcar (cdr time) (- ls 65536))) + (t + (setcar (cdr time) ls))) + (prog1 + (nntp-send-command + "^\\.\r?\n" "NEWGROUPS" + (format-time-string "%y%m%d %H%M%S" time) + "GMT") + (nntp-decode-text))))) (deffoo nntp-request-post (&optional server) (nntp-possibly-change-group nil server)