diff options
| author | Paul Eggert | 2011-06-30 18:49:43 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-30 18:49:43 -0700 |
| commit | 240a298f78ab504afcf0792e3061be9b95c8c581 (patch) | |
| tree | 1394bbdee511c60e793d486fb69e793922bc4a05 | |
| parent | b06823b67d921e74323cab25477fd7256cb6df08 (diff) | |
| download | emacs-240a298f78ab504afcf0792e3061be9b95c8c581.tar.gz emacs-240a298f78ab504afcf0792e3061be9b95c8c581.zip | |
* nntp.el (nntp-record-command): Use format-time-string.
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 009e8b32bd9..88ba910912e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,8 +1,9 @@ | |||
| 1 | 2011-07-01 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-07-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * gnus-util.el (gnus-message-with-timestamp-1): Use format-time-string | 3 | * nntp.el (nntp-record-command): |
| 4 | rather than decoding time stamps by hand. This is simpler, and | 4 | * gnus-util.el (gnus-message-with-timestamp-1): |
| 5 | insulates the code from changes to time stamp formats. | 5 | Use format-time-string rather than decoding time stamps by hand. |
| 6 | This is simpler and insulates the code from changes to time formats. | ||
| 6 | 7 | ||
| 7 | 2011-06-30 Katsumi Yamaoka <yamaoka@jpl.org> | 8 | 2011-06-30 Katsumi Yamaoka <yamaoka@jpl.org> |
| 8 | 9 | ||
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index a8ffc6576ca..986fd51a613 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -338,10 +338,8 @@ backend doesn't catch this error.") | |||
| 338 | "Record the command STRING." | 338 | "Record the command STRING." |
| 339 | (with-current-buffer (get-buffer-create "*nntp-log*") | 339 | (with-current-buffer (get-buffer-create "*nntp-log*") |
| 340 | (goto-char (point-max)) | 340 | (goto-char (point-max)) |
| 341 | (let ((time (current-time))) | 341 | (insert (format-time-string "%Y%m%dT%H%M%S.%3N") |
| 342 | (insert (format-time-string "%Y%m%dT%H%M%S" time) | 342 | " " nntp-address " " string "\n"))) |
| 343 | "." (format "%03d" (/ (nth 2 time) 1000)) | ||
| 344 | " " nntp-address " " string "\n")))) | ||
| 345 | 343 | ||
| 346 | (defun nntp-report (&rest args) | 344 | (defun nntp-report (&rest args) |
| 347 | "Report an error from the nntp backend. The first string in ARGS | 345 | "Report an error from the nntp backend. The first string in ARGS |