gnokii-commit
[Top][All Lists]
Advanced

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

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-3-


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-3-g357adad
Date: Sat, 01 May 2010 14:10:22 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  357adad7c5a4b8515e5ea7a609e17f1206f1333c (commit)
      from  f8176d1189587c3cbc401819acd1a1f4ed3b05df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=357adad7c5a4b8515e5ea7a609e17f1206f1333c


commit 357adad7c5a4b8515e5ea7a609e17f1206f1333c
Author: Daniele Forsi <address@hidden>
Date:   Sat May 1 16:10:05 2010 +0200

    Fix outputting BDAY property for phonebook entries in vCard format

diff --git a/ChangeLog b/ChangeLog
index e37c178..1ac17b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 0.6.30 (not released yet)
 =========================
+ * libgnokii updates
+    o fix printing BDAY for phonebook entries in vCard format
+                                                    (Daniele Forsi)
 
 0.6.29
 ======
diff --git a/common/vcard.c b/common/vcard.c
index 65c52ef..3243de3 100644
--- a/common/vcard.c
+++ b/common/vcard.c
@@ -186,7 +186,9 @@ GNOKII_API char * gn_phonebook2vcardstr(gn_phonebook_entry 
*entry)
                        vcard_append_printf(&str, "NICKNAME:%s", 
entry->subentries[i].data.number);
                        break;
                case GN_PHONEBOOK_ENTRY_Birthday:
-                       vcard_append_printf(&str, "BDAY:%s", 
entry->subentries[i].data.number);
+                       vcard_append_printf(&str, 
"BDAY:%04u%02u%02u%02uT%02u%02u",
+                               entry->subentries[i].data.date.year, 
entry->subentries[i].data.date.month, entry->subentries[i].data.date.day,
+                               entry->subentries[i].data.date.hour, 
entry->subentries[i].data.date.minute, entry->subentries[i].data.date.second);
                        break;
                case GN_PHONEBOOK_ENTRY_ExtGroup:
                        vcard_append_printf(&str, "X-GSM-CALLERGROUPID:%d", 
entry->subentries[i].data.id);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    3 +++
 common/vcard.c |    4 +++-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs




reply via email to

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