Skip to content

Call history dates ignore user-selected date format (year always hidden) #664

@chrbratt

Description

@chrbratt

Checklist

  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the request will be dismissed otherwise.
  • This issue contains only one feature request.
  • I have read and understood the contribution guidelines.

Feature description

The date format in the call history does not respect the user's selected date format from settings. Specifically, the year is always stripped from dates, even when the user has chosen a format that includes the year.

This affects both:

  • The date/time shown on individual call entries
  • The date dividers/separators between call groups

Why do you want this feature?

Steps to reproduce

  1. Go to Settings → General → Date format
  2. Select a format that includes the year (e.g., "2024-12-15" or "15/12/2024")
  3. Open the Phone app and view the Call history
  4. Observe that dates do not show the year

Expected behavior

Dates in the call history should display according to the user's selected date format, including the year when applicable.

Actual behavior

The year is always hidden, regardless of the user-selected format.

Additional information

The issue is in RecentCallsAdapter.kt where formatDateOrTime() is called with showCurrentYear = false. Setting this to true allows the date format to respect the user's preference from context.baseConfig.dateFormat.

I have implemented a fix in my fork and tested it. I would be happy to submit a PR if this issue is accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on or it is working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions