From 6e7256d9a5045b0021e0febe9fe04297e2cb43ab Mon Sep 17 00:00:00 2001 From: Bazsalanszky Date: Fri, 4 Aug 2023 15:59:18 +0200 Subject: [PATCH] Minor fix for "Cake day" parsing It now only shows the date --- .../main/java/eu/toldi/infinityforlemmy/user/ParseUserData.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/user/ParseUserData.java b/app/src/main/java/eu/toldi/infinityforlemmy/user/ParseUserData.java index 0833a76a..5008c5e8 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/user/ParseUserData.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/user/ParseUserData.java @@ -46,6 +46,7 @@ public class ParseUserData { int instance_id = personJson.getInt("instance_id"); String cakeday = personJson.getString(JSONUtils.PUBLISHED); + cakeday = cakeday.substring(0, cakeday.indexOf("T")); boolean isBot = personJson.getBoolean("bot_account"); boolean isBanned = personJson.getBoolean("banned"); boolean isLocal = personJson.getBoolean("local");