When we do an export, the bday field is exported as it. Unfortunately, this field is, at the moment, a free input one. The VCard bday field must be an ISO8601 or at least a YYYY-MM-DD format. Trying to do a magic with this field to try to detect a manually entered format is a no-way choice. Instead, we made the choice to test the date format and drop the field if it doesn't respect the expected one.
This PR makes this test and pop an error in console to inform about a malformed field.
To perfectly complete the #120 issue, we should:
force the input format in validation
plug a datepicker on the field to help input
inform the user in a notification panel at load that some contacts have malformed fields and invite him/her to fix them manually
Related to #120
When we do an export, the
bday
field is exported as it. Unfortunately, this field is, at the moment, a free input one. The VCardbday
field must be an ISO8601 or at least aYYYY-MM-DD
format. Trying to do a magic with this field to try to detect a manually entered format is a no-way choice. Instead, we made the choice to test the date format and drop the field if it doesn't respect the expected one.This PR makes this test and pop an error in console to inform about a malformed field.
To perfectly complete the #120 issue, we should: