Closed Bug 1893804 Opened 2 years ago Closed 17 days ago

Birthday without year from caldav is shown as 1604

Categories

(Thunderbird :: Address Book, defect)

Thunderbird 115
defect

Tracking

(thunderbird_esr140 affected, thunderbird_esr153 wontfix, thunderbird160 wontfix)

RESOLVED FIXED
161 Branch
Tracking Status
thunderbird_esr140 --- affected
thunderbird_esr153 --- wontfix
thunderbird160 --- wontfix

People

(Reporter: post+mozilla, Assigned: mkmelin)

Details

Attachments

(1 external file)

Steps to reproduce:

On my phone, I added a birthday without a year to a contact. The address booked is synced with Thunderbird via CardDav.

Actual results:

In Thunderbird, this shows as a birthday in the year 1604.

Expected results:

Thunderbird should treat this as a birthday without year.

(Google calendars do not seem to like not having year, if I add a date without year, that's not saved)

In my case the address book server is radicale, in case that is relevant.

(There's no calendar involved.)

Summary: Birthday without year is shown as 1604 → Birthday without year from caldav is shown as 1604

This still reproduces on Thunderbird 140.13.0esr.

vCard 3.0 can't express a date without a year, so iOS and DAVx5 write e.g.
BDAY;X-APPLE-OMIT-YEAR=1604:1604-04-15. iCloud stores such dates without the
parameter, e.g. BDAY;VALUE=DATE:1604-01-15, and Apple's devices still show
them without a year. Thunderbird showed these birthdays as being in 1604.

Add VCardUtils.parseDate, which drops the year if it matches the
X-APPLE-OMIT-YEAR parameter, or if it is 1604 when there is no such
parameter, and use it in the contact view, the contact editor and the
conversion to address book properties. When saving a date shown without a
year, the editor keeps the placeholder year the card had, with or without the
parameter, so other clients still see a date without a year.

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 161 Branch

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/f8c19c4ba7f5
Show vCard 3.0 dates with Apple's placeholder year as dates without a year. r=tobyp

Status: ASSIGNED → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: