Profile: When looking at another user's profile, the birthdate is not formatted correctly
Description
Attachments
Activity

Andrea Schmidt July 30, 2024 at 9:49 PM
Verified on 22x: https://qa22-mysql.nightly.sakaiproject.org/, build: 4f9de6ab

Mark Golbeck July 17, 2024 at 8:51 AM
Verified on 23.x: https://qa23-maria.nightly.sakaiproject.org/ , build: 98750d6b

Andrea Schmidt July 12, 2024 at 9:58 PM
Verified on 25x: https://trunk-maria.nightly.sakaiproject.org/, build: 7a14d267

Automation for Jira July 4, 2024 at 9:51 PM
A pull request has been created, "SAK-50274 Profile: When looking at another user's profile, the birthdate is not formatted correctly", you can see it at https://github.com/sakaiproject/sakai/pull/12707

Matthew Jones July 4, 2024 at 9:49 PM
This seems really hard to fix the privacy case and keep it localized. There’s ideas out there about regular expressions but they have edge cases in some languages.
I feel like displaying the first one localized and reversing the display when the year is hidden is sufficient. I put in a PR so now it it would display
In en_US (English) it would show
July 02
(If birth year hidden)
Jul 1, 2024
(if year isn't hidden)
In es_ES (Spanish) it now shows
julio 01
(if birth year hidden)
1 jul. 2024
(if year isn't hidden)
Previously it wasn’t even internationalized for the hidden case so this is an improvement on that too.
Details
Details
Priority
Affects versions
Fix versions
23 Status
22 Status
Components
Assignee

Reporter

If a user adds their birthdate to their profile, and another user views their profile, the date format is incorrect.
I selected July 2, 2000 and it displays as July 2, 2000. When another user views my profile, it displays as
02 07 2000
deals with the birth year being checked by default.