From 5a0ebde4d30edbc1964a6d3e77f8ab5e029d4f0d Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 2 Sep 2018 10:48:24 +0200 Subject: [PATCH] fix #244, PartialDate months start at 1 --- .../com/simplemobiletools/contacts/helpers/VcfExporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt index 4832c2ac..30c5237b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/VcfExporter.kt @@ -76,7 +76,7 @@ class VcfExporter { if (it.type == CommonDataKinds.Event.TYPE_BIRTHDAY || it.type == CommonDataKinds.Event.TYPE_ANNIVERSARY) { val dateTime = it.value.getDateTimeFromDateString() if (it.value.startsWith("--")) { - val partialDate = PartialDate.builder().year(null).month(dateTime.monthOfYear - 1).date(dateTime.dayOfMonth).build() + val partialDate = PartialDate.builder().year(null).month(dateTime.monthOfYear).date(dateTime.dayOfMonth).build() if (it.type == CommonDataKinds.Event.TYPE_BIRTHDAY) { card.birthdays.add(Birthday(partialDate)) } else {