Commit 240a298f authored by Paul Eggert's avatar Paul Eggert
Browse files

* nntp.el (nntp-record-command): Use format-time-string.

parent b06823b6
2011-07-01 Paul Eggert <eggert@cs.ucla.edu>
* gnus-util.el (gnus-message-with-timestamp-1): Use format-time-string
rather than decoding time stamps by hand. This is simpler, and
insulates the code from changes to time stamp formats.
* nntp.el (nntp-record-command):
* gnus-util.el (gnus-message-with-timestamp-1):
Use format-time-string rather than decoding time stamps by hand.
This is simpler and insulates the code from changes to time formats.
2011-06-30 Katsumi Yamaoka <yamaoka@jpl.org>
......
......@@ -338,10 +338,8 @@ backend doesn't catch this error.")
"Record the command STRING."
(with-current-buffer (get-buffer-create "*nntp-log*")
(goto-char (point-max))
(let ((time (current-time)))
(insert (format-time-string "%Y%m%dT%H%M%S" time)
"." (format "%03d" (/ (nth 2 time) 1000))
" " nntp-address " " string "\n"))))
(insert (format-time-string "%Y%m%dT%H%M%S.%3N")
" " nntp-address " " string "\n")))
(defun nntp-report (&rest args)
"Report an error from the nntp backend. The first string in ARGS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment