cordova-plugin-contacts icon indicating copy to clipboard operation
cordova-plugin-contacts copied to clipboard

Plugin skip birthday without year on android

Open AlexanderVagner opened this issue 5 years ago • 0 comments

Bug Report

Problem

Contact with birthday, which is without year imports with empty birthday

What is expected to happen?

Expects to have contact with birthday with empty year

What does actually happen?

We have contact with empty birthday

Information

1b590002111100020000888800000000

This problem is because date without year in android passed as "--MM-DD"(https://stackoverflow.com/questions/25161485/is-the-mm-dd-format-for-month-day-part-of-iso-8601), which cannot parse by Date.valueOf method.

Command or Code

Environment, Platform, Device

Reproduced on Android 26 Pixel Emulator

Checklist

  • [ x] I searched for existing GitHub issues
  • [x ] I updated all Cordova tooling to most recent version
  • [ x] I included all the necessary information above

AlexanderVagner avatar Jun 21 '19 17:06 AlexanderVagner