diff options
| author | Gerd Moellmann | 2001-07-23 10:08:15 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-07-23 10:08:15 +0000 |
| commit | 3b0dbc912b2a5ca4a5cccb6c2c343e4f11b39096 (patch) | |
| tree | e52ae7389979e1c72e52e9a0f765243c3cf66e05 | |
| parent | f111f09d776ecf745f948dc74255939d8aa37b25 (diff) | |
| download | emacs-3b0dbc912b2a5ca4a5cccb6c2c343e4f11b39096.tar.gz emacs-3b0dbc912b2a5ca4a5cccb6c2c343e4f11b39096.zip | |
(nntp-request-newgroups): Use UTC date for NEWGROUPS
command.
| -rw-r--r-- | lisp/gnus/nntp.el | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 52322137052..803fd975e5e 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; nntp.el --- nntp access for Gnus | 1 | ;;; nntp.el --- nntp access for Gnus |
| 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1992, 1993, 1994, 1995, 1996, | 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1992, 1993, 1994, 1995, 1996, |
| 3 | ;; 1997, 1998, 2000 | 3 | ;; 1997, 1998, 2000, 2001 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -752,11 +752,22 @@ noticing asynchronous data.") | |||
| 752 | (nntp-possibly-change-group nil server) | 752 | (nntp-possibly-change-group nil server) |
| 753 | (save-excursion | 753 | (save-excursion |
| 754 | (set-buffer nntp-server-buffer) | 754 | (set-buffer nntp-server-buffer) |
| 755 | (prog1 | 755 | (let* ((time (date-to-time date)) |
| 756 | (nntp-send-command | 756 | (ls (- (cadr time) (nth 8 (decode-time time))))) |
| 757 | "^\\.\r?\n" "NEWGROUPS" | 757 | (cond ((< ls 0) |
| 758 | (format-time-string "%y%m%d %H%M%S" (date-to-time date))) | 758 | (setcar time (1- (car time))) |
| 759 | (nntp-decode-text)))) | 759 | (setcar (cdr time) (+ ls 65536))) |
| 760 | ((>= ls 65536) | ||
| 761 | (setcar time (1+ (car time))) | ||
| 762 | (setcar (cdr time) (- ls 65536))) | ||
| 763 | (t | ||
| 764 | (setcar (cdr time) ls))) | ||
| 765 | (prog1 | ||
| 766 | (nntp-send-command | ||
| 767 | "^\\.\r?\n" "NEWGROUPS" | ||
| 768 | (format-time-string "%y%m%d %H%M%S" time) | ||
| 769 | "GMT") | ||
| 770 | (nntp-decode-text))))) | ||
| 760 | 771 | ||
| 761 | (deffoo nntp-request-post (&optional server) | 772 | (deffoo nntp-request-post (&optional server) |
| 762 | (nntp-possibly-change-group nil server) | 773 | (nntp-possibly-change-group nil server) |