Snooze label date format is ambiguous

Description

The Snooze label date format leads to ambiguous display in at least two cases:

  1. Hour is displayed without minutes so it really looks like it is a year
  2. Year is not displayed even if snoozing beyond year’s end

To Reproduce…

Steps to reproduce the 1st failing use case:

  1. Snooze an email
  2. Type 13 dec at 22h or any plain hours (without minutes, such as 1:00, 2:00, etc)
  3. Mail will be visibly snoozed to the following date: Dec, 13 22, which seems like it is 2022/12/13 date

Steps to reproduce the 2nd failing use case:

  1. Snooze an email
  2. Type 13 dec 2022
  3. Mail will be visibly snoozed to the following date: Dec, 13 12, which seems like it is 2012/12/13 date

Note: when not specifying any hour, it sets the snooze time at 12 o’clock, like above… so the impact is significant because it is the default behaviour

Expected Behavior

  • Do not display hours/minutes if they were not specified
  • Always display hours AND minutes to lift any ambiguity
  • Make it smart to display the year as well, if snoozed beyond this year’s end

The expected label for above ambiguous use cases would be:

  • Dec, 13 22:00
  • Dec, 13 2022

Screenshots

Setup

  • OS and Version: Mac OS Catalina 10.15.6
  • Mailspring Version: 1.7.8

(Originally posted by pandaiolo on GitHub.)

This is implemented in: feat: Make snooze label unambiguous by Phylu · Pull Request #2469 · Foundry376/Mailspring · GitHub