]> code.delx.au - gnu-emacs/commitdiff
(add-log-iso8601-time-zone): Make parameter optional.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 26 Apr 2006 14:16:05 +0000 (14:16 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 26 Apr 2006 14:16:05 +0000 (14:16 +0000)
(add-log-iso8601-time-string): Fix call to format-time-string.

lisp/ChangeLog
lisp/add-log.el

index d2d3cd6f9b0c9b95f7df12d5a5a3b6f2f33f3524..dea1f0b9efe0e7733e8b083dd5c65d938d67708f 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * add-log.el (add-log-iso8601-time-zone): Make parameter optional.
+       (add-log-iso8601-time-string): Fix call to format-time-string.
+
 2006-04-26  Kim F. Storm  <storm@cua.dk>
 
        * subr.el (posn-string, posn-image, posn-object): Doc fix.
index b47494194d48c7657dc8aa5391ea9348d662e21f..47a839d539d58dfc756bfd211ba4d80b61e79762 100644 (file)
@@ -295,7 +295,7 @@ It takes the same format as the TZ argument of `set-time-zone-rule'.
 If nil, use local time.
 If t, use universal time.")
 
-(defun add-log-iso8601-time-zone (time)
+(defun add-log-iso8601-time-zone (&optional time)
   (let* ((utc-offset (or (car (current-time-zone time)) 0))
         (sign (if (< utc-offset 0) ?- ?+))
         (sec (abs utc-offset))
@@ -311,7 +311,8 @@ If t, use universal time.")
 (defvar add-log-iso8601-with-time-zone nil)
 
 (defun add-log-iso8601-time-string ()
-  (let ((time (format-time-string "%Y-%m-%d" (eq t add-log-time-zone-rule))))
+  (let ((time (format-time-string "%Y-%m-%d"
+                                  nil (eq t add-log-time-zone-rule))))
     (if add-log-iso8601-with-time-zone
         (concat time " " (add-log-iso8601-time-zone))
       time)))