-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Birthdays are Imported incorrectly #32
Comments
Thanks for reporting. I can confirm I see the same problem with generated vCards, although I don't think this is a regression, but just something I missed from the beginning. Seems odd, since I thought both LI and JS's |
I had this wrong; LI specifically does not use zero-based indexing for months, but the JS Date constructor does (or at least does when calling it with numerical arguments), which is precisely why this bug exists. Fixed by making sure date object that gets constructed (and passed to vCard creator) does not have offset month. @jacobamiller Thanks for reporting. Fix has been released and pushed to webstore (pending Google's review) - v1.5.0. |
I just updated to 1.5.0 and tried importing 3 different contacts with Birthday however No Birthday is imported to the VCard, when I opened the Vcard in a text editor I see "BDAY:NaNaNaN" |
Blergh. You are right; it seems to be working with certain profiles but not others (I only could find one profile with a birthday when I was originally working on this, but just found another now that has your issue). I'll look into it. |
Found the issue; it happens with profiles that specify a birthday without giving a birth year (i.e., so no one can know their age). The vCard spec allows for partial (aka truncated) BDAY entries.
EDIT: This is not the full truth, see subsequent comment |
The issue was indeed due to partial BDAY entries, but I was only half-right in asserting that the vCard spec supports these; that is only true in The easiest fix, which I've just applied and released in Notes to self (or anyone else curious)
|
I would suggest that if a partial Birthday to set the Year to 1900, I would prefer to have contacts Bdays with a clearly wrong Year vs no Birthday at all |
Recently all birthdays are 1 month off from what is said on LinkedIn for example a Jan 15th is being changed to Feb 15th
The text was updated successfully, but these errors were encountered: