From 3a5b2b147cea66b251e985e8f3f00abfed0d77d6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 22 Oct 2018 11:36:24 +0300 Subject: xmpp: show Juick birthday in vCard --- juick-server/src/main/java/com/juick/server/XMPPConnection.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-server/src/main') diff --git a/juick-server/src/main/java/com/juick/server/XMPPConnection.java b/juick-server/src/main/java/com/juick/server/XMPPConnection.java index f405e384..c861b757 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java +++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java @@ -73,6 +73,7 @@ import java.net.URISyntaxException; import java.net.URL; import java.nio.file.Path; import java.nio.file.Paths; +import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; @@ -142,6 +143,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener { System.getProperty("os.name", "generic"))); VCard vCard = new VCard(); vCard.setFormattedName("Juick"); + vCard.setBirthday(LocalDate.of(2008, 10, 22)); try { vCard.setUrl(new URL("http://juick.com/")); vCard.setPhoto(new VCard.Image("image/png", IOUtils.toByteArray( -- cgit v1.2.3