cozy / cozy-contacts-v2

Contact books manager for Cozy
http://cozy.io
GNU Affero General Public License v3.0
20 stars 20 forks source link

Wrong synchronization of date when the year is not specified #300

Open jdambron opened 7 years ago

jdambron commented 7 years ago

When synchronizing contacts, either through Google import or Android sync, if the year is not specified (possible for instance for birthdays) the date is incorrectly imported into cozy : the day becomes 1, the month is the day and the year is the month.

clochix commented 7 years ago

Thanks for reporting @jdambron. I just has a look and it seems that the birthday date is imported without the year, so it is stored inside the database as '--05-17' for example. So this is probably just a problem when we display it, we should take this case into account and only display day and month.

jdambron commented 7 years ago

Thanks for this quick answer @clochix.

The display is indeed one problem but not the only one. If you use Konnectors to import birthdays into your calendar for example, it uses the wrong date.