thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

[ML 0.1/UI.01.1] - Introduce Message List Item date time format customization

Open rafaeltonholo opened this issue 1 year ago • 5 comments

Possible formats:

  • Auto (default):

    • For messages from the same day: display the hour, according to the device's locale (e.g., 3:22 PM, 15:22).
    • For messages from "yesterday": display as Yesterday.
    • For messages from the same week (but not from "yesterday"): display the weekday name.
    • For messages from before the current week, but in the same year: display as Month day (e.g., Jan 2, Mar 24, Apr 1, Dec 25).
    • For messages from before the current year: display the date in Full mode, omitting the time.
  • Full: Always display the full date and time, according to the device's locale (e.g., 9/15/2025, 3:22 PM, 15/9/2025, 3:22 PM, 9/15/2025, 15:22, 15/9/2025, 15:22).

Acceptance criteria:

  • Create the MessageListDateTimeFormat preference option
  • Add a new customization option under General Settings > Display > Message List
  • Store the user's selection using the new PreferenceManager approach
  • Default to Auto.

rafaeltonholo avatar Dec 04 '25 13:12 rafaeltonholo

@rafaeltonholo After implementing and testing the Auto and Full modes locally, I noticed one gap that might be valuable to address for power users. ​I suggest we add a third option: ISO 8601. ​Rationale: While Full is great because it respects the Android system locale, technical users often prefer a deterministic, unambiguous format (YYYY-MM-DD HH:mm) that doesn't change based on the device language. ​Full (Locale US): 1/17/2026 12:45 PM ​Full (Locale DE): 17.01.2026 12:45 ​ISO 8601: 2026-01-17 12:45 (Always the same) ​Since the architecture (Enum/ListPreference) is already being put in place, adding ISO to the MessageListDateTimeFormat enum would be a low-effort addition that aligns well with Thunderbird's technical user base.

alpharesearch avatar Jan 17 '26 17:01 alpharesearch

Hi @dani-zilla,

I recently started looking into this feature and you were already assigned—sorry for the overlap!

As a test I have implemented and tested an ISO 8601 option (e.g., 2026-01-17 14:30), which is often requested by power users who prefer a deterministic, unambiguous format over the system locale defaults.

If you think this would be a good addition, I pushed that specific implementation to a clean commit here. Please feel free to cherry-pick it or reference it for your implementation:

https://github.com/alpharesearch/thunderbird-android/commit/69509a3c2601a9ca8d71e021c713f8c1aa6a3dfd

Thanks for working on this!

alpharesearch avatar Jan 17 '26 18:01 alpharesearch

Closing this out as it's been added as described, however https://github.com/thunderbird/thunderbird-android/issues/10439 is the task to finish the UI work on this to make the compose view of messagelist more dynamic

dani-zilla avatar Feb 12 '26 15:02 dani-zilla

@rafaeltonholo will you accept a patch to add ISO 8601?

alpharesearch avatar Feb 12 '26 17:02 alpharesearch

@rafaeltonholo will you accept a patch to add ISO 8601?

Hey there! Could you please open another bug ticket for that? Then I will assign it to you, and you can work on this fix.

rafaeltonholo avatar Feb 19 '26 15:02 rafaeltonholo