+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.
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))
(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)))