# HG changeset patch # User Stefan Monnier # Date 1146060965 0 # Node ID b98a2445fe1ff60b05345643c23295fac6930a4c # Parent a77964e2432718784ab1bb4a6fb960aefcd765a7 (add-log-iso8601-time-zone): Make parameter optional. (add-log-iso8601-time-string): Fix call to format-time-string. diff -r a77964e24327 -r b98a2445fe1f lisp/ChangeLog --- a/lisp/ChangeLog Wed Apr 26 13:13:35 2006 +0000 +++ b/lisp/ChangeLog Wed Apr 26 14:16:05 2006 +0000 @@ -1,3 +1,8 @@ +2006-04-26 Stefan Monnier + + * 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 * subr.el (posn-string, posn-image, posn-object): Doc fix. diff -r a77964e24327 -r b98a2445fe1f lisp/add-log.el --- a/lisp/add-log.el Wed Apr 26 13:13:35 2006 +0000 +++ b/lisp/add-log.el Wed Apr 26 14:16:05 2006 +0000 @@ -295,7 +295,7 @@ 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 @@ (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)))