emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb 470943c: Fix vcard export of anniversary fields, b


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 470943c: Fix vcard export of anniversary fields, bump to 0.6.14
Date: Thu, 16 Apr 2020 17:01:00 -0400 (EDT)

branch: externals/ebdb
commit 470943c52d8ffebaa104f4496cb42a709f0bae82
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Fix vcard export of anniversary fields, bump to 0.6.14
    
    Fixes #85 on Github
    
    * ebdb-vcard.el (ebdb-fmt-field): This whole thing needs to be
    finished, but this at least prevents errors.
---
 ebdb-vcard.el | 7 ++++---
 ebdb.el       | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ebdb-vcard.el b/ebdb-vcard.el
index fcd153f..7ba0217 100644
--- a/ebdb-vcard.el
+++ b/ebdb-vcard.el
@@ -394,9 +394,10 @@ method is just responsible for formatting the record name."
                              _style
                              _record)
   (pcase-let ((`(,month ,day ,year)
-              (calendar-gregorian-from-absolute
-               (slot-value ann 'date))))
-    (format "%d%02d%02d" year month day)))
+              (slot-value ann 'date)))
+    (if (integerp year)
+       (format "%d%02d%02d" year month day)
+      (format "%02d%02d" month day))))
 
 (provide 'ebdb-vcard)
 ;;; ebdb-vcard.el ends here
diff --git a/ebdb.el b/ebdb.el
index ce32b83..1b401e7 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2,7 +2,7 @@
 
 ;; Copyright (C) 2016-2020  Free Software Foundation, Inc.
 
-;; Version: 0.6.13
+;; Version: 0.6.14
 ;; Package-Requires: ((emacs "25.1") (cl-lib "0.5") (seq "2.15"))
 
 ;; Maintainer: Eric Abrahamsen <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]