Skip to content

Add dashboard time format setting with 12/24-hour override#14490

Open
abdallahsellem wants to merge 1 commit intodotnet:mainfrom
abdallahsellem:support-for-24hour-time-format-dashboard
Open

Add dashboard time format setting with 12/24-hour override#14490
abdallahsellem wants to merge 1 commit intodotnet:mainfrom
abdallahsellem:support-for-24hour-time-format-dashboard

Conversation

@abdallahsellem
Copy link
Contributor

Description

add a Settings dialog option for time format (System, 12-hour, 24-hour) and persist the selection in browser local storage.

update BrowserTimeProvider and MainLayout startup flow to restore the saved preference, and apply it through FormatHelpers for time/date-time rendering while preserving culture-specific separators.

add localization resources for the new setting and tests covering forced 12/24-hour formatting behavior across cultures.

Fixes #11478

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

add a Settings dialog option for time format (System, 12-hour, 24-hour) and persist the selection in browser local storage.

update BrowserTimeProvider and MainLayout startup flow to restore the saved preference, and apply it through FormatHelpers for time/date-time rendering while preserving culture-specific separators.

add localization resources for the new setting and tests covering forced 12/24-hour formatting behavior across cultures.
@github-actions
Copy link
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14490

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14490"

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Feb 13, 2026
@abdallahsellem
Copy link
Contributor Author

@copilot review

@abdallahsellem abdallahsellem changed the title add dashboard time format setting with 12/24-hour override Add dashboard time format setting with 12/24-hour override Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aspire Dashboard: Add support for 24-hour time format in English

1 participant