motschel123 / Mac-Contact-Sync-Obsidian

GNU Affero General Public License v3.0
9 stars 2 forks source link

Plugin is changing birthdays in contact database #7

Closed bikelanta closed 4 months ago

bikelanta commented 8 months ago

The plugin is advancing birthdays for my contacts. As in, if it was 1/1 originally in the contact database, it is being changed to 1/2.

bikelanta commented 8 months ago

It turns out that part of the problem is a bug in Apple Contacts app, which increments birthdays by one day for MS Exchange contacts. However, there is still an issue with iCloud contacts:

motschel123 commented 8 months ago

Thanks for the feedback.

I checked with a dummy contact and could not reproduce the error. Please create a dummy contact, export the vcard and add it to this issue so I can reproduce the issue and fix it.

bikelanta commented 8 months ago

Here are three dummy vCards. I put in the notes where they were created. 2 are created in an Exchange account. 1 was created in an iCloud account. They all have birthdays on the 14th of the noted month. With the Exchange contacts, they both sync into Obsidian with correct birthdays. The iCloud contact syncs with a birthday on the 13th.

vCards.zip

motschel123 commented 8 months ago

Thanks for the informations.

Can you let me know which country settings you have set on your machine, there might be an issue with date parsing on machines set to US or other English countries.

bikelanta commented 8 months ago

The Mac itself is set to United States as the region with the Gregorian calendar.

motschel123 commented 4 months ago

Sorry for taking so long to come back to you. I tried to reproduce the error by setting my region to US and loading your provided vCards, but I had no issues with the dates. I'm sorry if the error still persists on your side, but without reproducing it, I won't be able to fix it and will close this issue.