Skip to content

[Settings] Format last update check date with friendly relative dates#46923

Merged
niels9001 merged 1 commit intomainfrom
niels9001/friendly-date
Apr 15, 2026
Merged

[Settings] Format last update check date with friendly relative dates#46923
niels9001 merged 1 commit intomainfrom
niels9001/friendly-date

Conversation

@niels9001
Copy link
Copy Markdown
Collaborator

Summary

Formats the Last checked date on the General and Dashboard pages with friendly relative strings instead of raw date/time output.

Before: Last checked: 4/12/2026 1:22:00 PM
After: Last checked: Today at 1:22 PM / Yesterday at 3:45 PM

Changes

  • Add LastCheckedDateTime property to UpdatingSettings exposing the parsed DateTime
  • Create FriendlyDateHelper in Settings.UI that formats Today/Yesterday with localized resource strings, falling back to the full culture-specific format for older dates
  • Update GeneralViewModel and CheckUpdateControl to use the friendly format
  • Add localized resource strings General_LastCheckedDate_TodayAt and General_LastCheckedDate_YesterdayAt

Add FriendlyDateHelper that formats the last update check date as
'Today at 1:22 PM' or 'Yesterday at 3:45 PM' instead of raw
date/time strings. Older dates fall back to the full culture-specific
format.

- Add LastCheckedDateTime property to UpdatingSettings for raw DateTime
- Create FriendlyDateHelper in Settings.UI/Helpers with localized
  resource strings for Today/Yesterday formats
- Update GeneralViewModel and CheckUpdateControl to use friendly format

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@moooyo moooyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@niels9001 niels9001 merged commit 578554d into main Apr 15, 2026
15 checks passed
@LegendaryBlair LegendaryBlair added this to the PowerToys 0.99 milestone Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants