Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@helldev.net>2018-12-30 18:43:01 +0300
committerJohn Smith <mrdoctorwho@helldev.net>2018-12-30 18:43:01 +0300
commita84c6f3d64a874dca61b414bb8502701bdd36099 (patch)
tree852b55f6f9a95500860c7aa5133539c9940624fa
parent715f5bd63c937252f60e3b71c99467c4f6343e94 (diff)
fix birthdate formatting once againtesting
-rw-r--r--modules/mod_iq_vcard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mod_iq_vcard.py b/modules/mod_iq_vcard.py
index 1c50a2c..16bab74 100644
--- a/modules/mod_iq_vcard.py
+++ b/modules/mod_iq_vcard.py
@@ -123,7 +123,7 @@ def buildVcard(data, template=VCARD_TEMPLATE, fields=VCARD_FIELDS, user=None):
elif key == KEY_BDAY and value:
if value.count(".") == 1:
- value += time.strftime("%Y")
+ value += time.strftime(".%Y")
value = time.strftime("%Y-%m-%d", time.strptime(value, "%d.%m.%Y"))
vcard.setTagData(key, value)