Skip to content

[iOS] Fix TimePicker forcing en-US culture on iOS instead of device culture - #37797

Merged
kubaflo merged 7 commits into
dotnet:inflight/currentfrom
SyedAbdulAzeemSF4852:revert-31066-fix
Sep 2, 2026
Merged

kubaflo merged 7 commits into
dotnet:inflight/currentfrom
SyedAbdulAzeemSF4852:revert-31066-fix

Conversation

@SyedAbdulAzeemSF4852

@SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Details

  • On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead of respecting the device's culture and 24-hour time setting — this happens specifically when Format is left at its default value of "t" regardless of what the device's actual region/culture is set to.

Root Cause

  • PR [iOS] Fix TimePicker AM/PM frequently changes when the app is closed and reopened #31066 introduced a regression in TimePickerExtensions.UpdateTime by selecting the formatting culture based on characters in the Format string instead of the device’s actual culture. Formats containing t or h were forced to en-US, while formats containing H were forced to de-DE. Since the default Format is "t", the default TimePicker was always rendered using the 12-hour AM/PM format, ignoring the device’s regional settings.

Description of Change

  • Removed the t-based culture override introduced by [iOS] Fix TimePicker AM/PM frequently changes when the app is closed and reopened #31066, which incorrectly forced en-US when the default Format="t" was used. The displayed time now uses CultureInfo.CurrentCulture, while the existing explicit H and h behavior remains.
  • Updated the native UIDatePicker locale on every update. Explicit H and h formats continue to select 24-hour and 12-hour wheels respectively, while other formats use the full current culture name, such as en-GB, to preserve the language and region and prevent a previously assigned locale from remaining stale.

Issues Fixed

Fixes #37407
Fixes #30837

Validated the behaviour in the following platforms

  • Windows
  • Android
  • iOS
  • Mac

Output

Before After
TimePicker_Before.mp4
TimePicker_After.mp4

@github-actions

Copy link
Copy Markdown
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/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37797

Or

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

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Aug 25, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@SyedAbdulAzeemSF4852! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Aug 25, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR targets an iOS TimePicker regression where the default Format="t" ends up displaying as en-US 12-hour time instead of honoring the device locale. It does so by switching the text formatting back to use the current iOS-derived culture and by updating how that iOS culture is resolved from NSLocale.

Changes:

  • Updates iOS TimePickerExtensions.UpdateTime to format the displayed text using Culture.CurrentCulture instead of a format-character-derived culture.
  • Reworks Microsoft.Maui.Platform.Culture.CurrentCulture (iOS) to parse culture names from the iOS locale identifier, with an iOS 17+ code path intended to avoid @rg= parse failures.
  • Adds an iOS device test asserting the default "t" format uses the current iOS locale.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/Core/tests/DeviceTests/Handlers/TimePicker/TimePickerHandlerTests.iOS.cs Adds a device test asserting default "t" formatting follows the current iOS locale.
src/Core/src/Platform/iOS/TimePickerExtensions.cs Changes TimePicker text formatting to use Culture.CurrentCulture; retains (and modifies) UIDatePicker locale override logic.
src/Core/src/Platform/iOS/Culture.cs Updates iOS culture resolution to parse NSLocale identifiers (and adds an iOS 17+ handling path).

Comment thread src/Core/src/Platform/iOS/Culture.cs Resolved
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Aug 26, 2026

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Expert Review — 7 findings

See inline comments for details.

Comment thread src/Core/src/Platform/iOS/Culture.cs Resolved
Comment thread src/Core/src/Platform/iOS/Culture.cs Resolved
Comment thread src/Core/src/Platform/iOS/Culture.cs Resolved
MauiBot

This comment was marked as outdated.

@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-win AI found a better alternative fix than the PR s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) and removed s/agent-review-in-progress AI review is currently running for this PR labels Aug 26, 2026

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI Review Summary

@SyedAbdulAzeemSF4852 — new AI review results are available based on commit 7e7e95c.

Gate Inconclusive Confidence Medium Platform iOS


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ⚠️ INCONCLUSIVE

Platform: IOS · Base: main · Merge base: abdfbef0

🩺 Could not verify — environment/infrastructure error. The gate ran the tests but hit an environment error (an emulator/simulator/Appium/XHarness flake, a device that would not boot, or an empty/invalid result file), so it could not record a real pass/fail. The ⚠️ ENV ERROR marks below are infrastructure, not test failures — this is not a problem with your PR. Comment /review to retry on a fresh agent.

XHarness did not produce the expected fresh result 'testResults.xml' for requested class(es) 'Microsoft.Maui.DeviceTests.TimePickerHandlerTests' (the target tests did not run).

Test Without Fix (expect FAIL) With Fix (expect PASS)
📱 TimePickerHandlerTests (DefaultFormatUsesCurrentiOSLocale) Category=TimePicker ⚠️ ENV ERROR ⚠️ ENV ERROR
🔴 Without fix — 📱 TimePickerHandlerTests (DefaultFormatUsesCurrentiOSLocale): ⚠️ ENV ERROR · 300s

No log file found

🟢 With fix — 📱 TimePickerHandlerTests (DefaultFormatUsesCurrentiOSLocale): ⚠️ ENV ERROR · 94s

No log file found

⚠️ Failure Details

  • ⚠️ TimePickerHandlerTests (DefaultFormatUsesCurrentiOSLocale) without fix: XHarness did not produce the expected fresh result 'testResults.xml' for requested class(es) 'Microsoft.Maui.DeviceTests.TimePickerHandlerTests' (the target tests did not run).
  • ⚠️ TimePickerHandlerTests (DefaultFormatUsesCurrentiOSLocale) with fix: XHarness did not produce the expected fresh result 'testResults.xml' for requested class(es) 'Microsoft.Maui.DeviceTests.TimePickerHandlerTests' (the target tests did not run).
📁 Fix files reverted (2 files)
  • src/Core/src/Platform/iOS/Culture.cs
  • src/Core/src/Platform/iOS/TimePickerExtensions.cs

📋 Pre-Flight — Context & Validation

PR #37797 Pre-Flight

Context

  • Title: [iOS] Fix TimePicker forcing en-US culture on iOS instead of device culture
  • Base / materialized head: origin/main at abdfbef0e91622ef4b1cceb4897c236f7452f428 / review commit 4a3115c51ddf5257923d986ba6d5ef73c068c6d7
  • Problem: On iOS, the default TimePicker.Format value ("t") is interpreted as a reason to format with en-US, forcing a 12-hour AM/PM display instead of honoring the device locale and its 12/24-hour preference.
  • PR root-cause claim: #31066 selected a formatting culture by searching the format string for t/h/H; the default "t" therefore always selected en-US.
  • Linked issues: #37407 and #30837.

Existing PR Approach

The PR changes three files:

  1. src/Core/src/Platform/iOS/TimePickerExtensions.cs
    • Removes the format.Contains('t') route to en-US.
    • Formats the text with Culture.CurrentCulture.
    • Retains explicit en-US and de-DE picker locales for custom h and H formats.
  2. src/Core/src/Platform/iOS/Culture.cs
    • Replaces country-code suffix matching with locale-identifier parsing.
    • On iOS 17+, constructs a .NET culture from LanguageCode, ScriptCode, and RegionCode to account for @rg= regional overrides.
    • Strips ICU keyword suffixes on older iOS versions and falls back to invariant culture when parsing fails.
  3. src/Core/tests/DeviceTests/Handlers/TimePicker/TimePickerHandlerTests.iOS.cs
    • Adds DefaultFormatUsesCurrentiOSLocale, comparing the rendered text with an NSDateFormatter using NSLocale.CurrentLocale.

Alternative candidates must use a different root-cause mechanism from the PR rather than reimplementing its locale-to-CultureInfo conversion.

Validation Scope

  • Platform: ios
  • Detected primary test: TimePickerHandlerTests.DefaultFormatUsesCurrentiOSLocale
  • Required command: pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Core -Platform ios -TestFilter "Category=TimePicker"
  • Additional mandatory regression tests: none were supplied.
  • Gate: inconclusive. Both baseline and PR-fix runs failed to produce a fresh XHarness testResults.xml; this is an environment blocker, not evidence that either implementation failed.
  • Do not rerun the prior without-fix/with-fix gate and do not run a full suite.

Attempt Boundaries

  • EstablishBrokenBaseline.ps1 identifies the production allow-list; only files in .github/.baseline-state.json under RevertedFiles may be modified.
  • The gate identified these fix files: src/Core/src/Platform/iOS/Culture.cs and src/Core/src/Platform/iOS/TimePickerExtensions.cs.
  • The worktree contains pre-existing harness/script changes unrelated to this PR. They must remain untouched.
  • Each candidate receives one implementation/test pass and at most one focused correction/retest.

🔬 Code Review — Deep Analysis

Expert Code Review — PR #37797

Verdict: NEEDS_CHANGES
Confidence: medium

The submitted fix correctly removes the default Format="t" path that forced en-US, replaces the incorrect country-code culture lookup, and accounts for iOS locale identifiers with regional-format suffixes. The approach is directionally sound, but the new picker-locale branch leaves stale native state when a format no longer contains H or h, and several adjacent locale paths can still make the displayed text disagree with the native picker.

Actionable findings

  1. Major — stale UIDatePicker.Locale: TimePickerExtensions.UpdateTime does not assign picker.Locale for "t", "T", "mm:ss", or any other non-empty format without H/h. Because the native locale is sticky, changing from "HH:mm" back to "t" can leave the wheel in a forced 24-hour locale while the text uses the device culture.
  2. Moderate — mixed-specifier precedence: checking H before h reverses the previous behavior for formats containing both characters, including an H inside a quoted literal. The 24-hour locale can be selected for a 12-hour format.
  3. Moderate — region is discarded: the null/empty-format path constructs NSLocale from TwoLetterISOLanguageName; for cultures such as en-GB, the wheel can use different 12/24-hour conventions from the region-aware formatted text.
  4. Moderate — invariant fallback: an unparseable locale is cached as InvariantCulture, whose short-time pattern can visibly contradict the device preference. A language-only fallback should be attempted before invariant culture.
  5. Moderate — untested locale mapping: the iOS 17 regional-override and language/script/region composition logic is not directly covered by the submitted device test.
  6. Minor — cache publication race: s_localeIdentifier is assigned before s_currentCulture. A concurrent reader can observe the new key with the old value; publish the identifier after computing the culture.
  7. Moderate — brittle exact string test: the device test compares .NET ICU output with NSDateFormatter character-for-character, although Unicode spacing and ICU-version differences can vary independently of the 12/24-hour behavior under test.

The raw file-and-line findings are persisted in ../inline-findings.json.

Reviewer patch guidance

A consolidated candidate should deterministically assign the full native locale on every UpdateTime path, preserve 12-hour precedence where both format characters occur, improve the culture fallback and cache publication order, and make the regression test tolerant of Unicode space differences. Any broader extraction of locale parsing into a new testable API would increase patch size and is not necessary to address the concrete correctness defects in this bounded review.

Cleared concerns

  • OperatingSystem.IsIOSVersionAtLeast(17) is valid for this shared iOS/Mac Catalyst source pattern.
  • Null or empty custom formats remain safe through ToFormattedString.
  • The culture lookup behavior change is compatible with the only in-repository consumer and fixes an objectively incorrect country-code suffix search.

🛠️ Try-Fix — Analysis & Comparison

PR #37797 — Bounded Try-Fix Aggregate

Candidate 1 — Claude Opus 5

Result: Blocked
Detailed report: ../try-fix-1/content.md
Attempt artifacts: attempt-1/

Approach

Keep the default short-time format in the native iOS formatting domain. For null, empty, or "t", the designed candidate would render the text with NSDateFormatter configured with NSLocale.CurrentLocale and short-time style, and would give the UIDatePicker that same full locale. Custom .NET format strings would retain the existing managed formatting path. Culture.cs would remain unchanged.

This differs from the PR's locale-to-CultureInfo repair: the PR makes the conversion more accurate and still formats "t" through .NET, whereas this candidate removes that conversion from the default-format path so iOS-only settings such as the 24-hour toggle remain authoritative.

Diff

(no changes)

The approach was designed but not applied. The mandatory baseline script rejected 55 pre-existing tracked harness changes, did not create .github/.baseline-state.json, and therefore provided no RevertedFiles edit allow-list.

Test Result

The required command was:

pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Core -Platform ios -TestFilter "Category=TimePicker"

It was not executed because no candidate diff could safely be applied. Result: Blocked, not a product-test failure. Inline expert self-review recorded 0 findings against the empty diff. The exact restore command ran and returned the permitted no-state result (Restored False, No baseline state found); no attempt-created source changes remained.

Candidate 2 — GPT-5.6 Sol

Result: Blocked
Detailed report: ../try-fix-2/content.md
Attempt artifacts: attempt-2/

Approach

Use the .NET runtime's ambient System.Globalization.CultureInfo.CurrentCulture directly in TimePickerExtensions.UpdateTime and stop treating the standard "t" format as an explicit en-US request. Preserve the existing explicit h and H picker-locale behavior and leave Microsoft.Maui.Platform.Culture unchanged.

This differs from both earlier mechanisms: the PR builds a custom CultureInfo by translating NSLocale components, while candidate 1 bypasses managed formatting with NSDateFormatter. Candidate 2 retains TimeSpan.ToFormattedString and tests whether the runtime's Apple globalization bridge already supplies the correct locale and 12/24-hour semantics.

Diff

(no changes)

The mandatory baseline command encountered the same deterministic dirty-worktree guard as candidate 1. It found 55 pre-existing tracked harness changes, created no .github/.baseline-state.json, and therefore provided no RevertedFiles edit allow-list. The candidate was not applied.

Test Result

The required command was:

pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Core -Platform ios -TestFilter "Category=TimePicker"

It was not executed because no candidate diff could safely be created. Result: Blocked, not a product-test failure. Inline expert self-review recorded 0 findings against the empty diff. The exact restore command ran and returned the permitted no-state result (Restored False, No baseline state found); no attempt-created source changes remained.

Aggregate Outcome

Two distinct alternatives were bounded and recorded:

Candidate Mechanism Result Tests
1 — Claude Opus 5 Native iOS short-time formatting; avoid locale conversion Blocked at baseline 0
2 — GPT-5.6 Sol Runtime CultureInfo.CurrentCulture; avoid custom locale conversion and native formatting Blocked at baseline 0

Neither candidate produced an implementation diff because the mandatory restoration-safe baseline could not be established without disturbing pre-existing harness changes. No candidate result should be interpreted as evidence for or against the proposed mechanism.


🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Winner: pr-plus-reviewer

The submitted PR fixes the reported default-"t" regression and substantially improves the iOS locale-to-CultureInfo lookup, but it introduces a concrete native-state bug: after a picker has used an explicit H/h format, switching to "t" leaves the previous UIDatePicker.Locale in place. The reviewer-enhanced candidate preserves the PR's intended fix while deterministically resetting the picker locale, restoring format precedence, improving fallback and cache safety, and adding focused transition coverage. Because those changes are not present in the submitted PR, approval is not recommended.

Candidate comparison

Rank Candidate Implementation Validation Assessment
1 pr-plus-reviewer Complete reviewer patch on top of the PR Blocked by .NET iOS 26.0.11017 requiring Xcode 26.0 while 26.5 is installed; no tests ran Best code-level result. Fixes the raw PR's sticky locale, full-region loss, H/h precedence inversion, culture-cache race, weak fallback, and brittle Unicode-space assertion. Adds a locale-reset regression test.
2 pr Complete submitted fix Gate inconclusive; no usable test result Correctly removes the default "t" → en-US path and replaces the faulty country-code lookup, but retains one major and several moderate expert findings. In particular, the native picker can retain a stale forced locale after a format change.
3 try-fix-1 No diff; design only Blocked before implementation or tests by the dirty-worktree baseline guard The native NSDateFormatter design could avoid lossy locale conversion for the default path, but it remains hypothetical and introduces date/time-zone integration complexity that was not compiled or exercised.
4 try-fix-2 No diff; design only Blocked before implementation or tests by the dirty-worktree baseline guard The ambient System.Globalization.CultureInfo.CurrentCulture design is minimal, but it was not implemented and provides no evidence that iOS regional-format overrides or the device 12/24-hour preference are represented correctly.

No candidate passed or failed regression tests: the raw PR gate was inconclusive, both STEP 5a alternatives were blocked before producing code, and pr-plus-reviewer was blocked by an Xcode compatibility check before device-test execution. Accordingly, the ranking is based on implemented behavior and traced failure modes rather than treating any environment blocker as a test failure.

Why pr-plus-reviewer wins

  1. It retains the submitted fix's correct root-cause change: standard format "t" no longer forces en-US.
  2. It addresses the highest-severity expert finding by assigning a locale on every update, so a prior custom format cannot leak native picker state into the default format.
  3. It keeps the text and wheel in the same regional domain by using the complete current NSLocale for device-driven formats.
  4. It adds a focused state-transition regression test and reduces known cross-ICU test brittleness.
  5. Unlike both try-fix-* entries, it exists as a complete diff that can be reviewed and applied.

Remaining uncertainty

  • The required iOS device tests did not run, so the candidate must not be described as validated.
  • The iOS 17 locale-component mapping and pre-iOS 17 ICU-suffix normalization still lack direct input-matrix coverage.
  • Custom-format locale selection still detects h/H by character presence and therefore retains the pre-existing quoted-literal limitation.

Required candidate artifacts are under pr-plus-reviewer/: reviewer.patch, candidate.patch, validation.log, and content.md.


📱 UI Tests — ViewBaseTests

Detected UI test categories: ViewBaseTests

✅ Deep UI tests — 112 passed, 0 failed across 1 category on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
ViewBaseTests 112/112 ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

🧭 Next Steps — reviewer changes required

The reviewer-enhanced candidate identified changes that are not yet in the submitted PR.

Why: The reviewer-enhanced PR preserves the submitted locale fix while correcting the native picker's stale-locale state, format precedence, region handling, culture-cache publication, and test brittleness. Its targeted validation was blocked by an Xcode/.NET iOS SDK mismatch rather than a regression failure, while both try-fix alternatives produced no implementation.

Address the actionable findings in this review before merging.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Aug 30, 2026

@kubaflo kubaflo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's the status of this one? Is it ready for review?

kubaflo added a commit that referenced this pull request Sep 1, 2026
…load (#37746)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!-- release-readiness-agent: human-approval-required -->
## Summary

Integrates the staged **.NET MAUI 10.0.101 (SR10.1)** payload from
`inflight/10.0.101` into `release/10.0.1xx-sr10`, based on the shipped
`10.0.100` release.

The full release inventory and servicing decisions are tracked in
#37723. The [authoritative regression
query](https://github.com/dotnet/maui/issues?q=repo%3Adotnet%2Fmaui%20is%3Aissue%20is%3Aopen%20%28label%3A%22regressed-in-10.0.10%22%20OR%20label%3A%22regressed-in-10.0.20%22%20OR%20label%3A%22regressed-in-10.0.30%22%20OR%20label%3A%22regressed-in-10.0.40%22%20OR%20label%3A%22regressed-in-10.0.50%22%20OR%20label%3A%22regressed-in-10.0.60%22%20OR%20label%3A%22regressed-in-10.0.70%22%20OR%20label%3A%22regressed-in-10.0.80%22%20OR%20label%3A%22regressed-in-10.0.90%22%20OR%20label%3A%22regressed-in-10.0.100%22%29)
remains the source for the servicing-regression scope.

> [!IMPORTANT]
> Checked items under **Staged in this PR** are merged into
`inflight/10.0.101`, not yet into `release/10.0.1xx-sr10`. They reach
the release branch only when this aggregate PR is merged.

## Status at a glance

- [x] Stage the selected regression backports independently on
`inflight/10.0.101`.
- [x] Stage the SkiaSharp 4.150.1 payload and selective
`SKPath.AddCircle` compatibility fix.
- [x] Stage the isolated iOS 26 Liquid Glass TabBar payload from #37542.
- [ ] Complete or explicitly defer the six unresolved servicing
regressions listed below.
- [ ] Complete the release gates and merge this PR into
`release/10.0.1xx-sr10`.

## Staged in this PR

### Servicing regressions

- [x] #35826 — Android MediaPicker completion from child activities.
Source #35944; component backport #37724.
- [x] #36298 — Windows dynamic `ContentPresenter` assignment. Source
#36430; component backport #37725.
- [x] #36749 — preserve custom iOS Button styling. Source #36769;
component backport #37726.
- [x] #36736 — align Android SwipeItem content. Source #36820; component
backport #37727.
- [x] #34563 — per-edge iOS safe-area handling. Source #37033; component
backport #37728.
- [x] #37706 — Android root-page back handling. Source #37709; component
backport #37729.
- [x] #37705 — Android Material 3 status-bar contrast. Source #37710;
component backport #37730.
- [x] #37423 — restore native iOS 26 Liquid Glass TabBar behavior
through the isolated four-file payload from merged PR #37542.
- [x] #37418 — Android off-screen `TranslationY` layout padding. Source
fix #37772; focused backport commit `10799e67df`.
- [x] #37361 — iOS RefreshView pull-to-refresh with an empty
CollectionView. Source fix #37404; focused backport commit `d26faa8e93`.
- [x] #37638 — Android `Screenshot.CaptureAsync` synchronous UI-thread
deadlock. Source fix #37680; focused backport commit `778040a233`.

### Planned Skia payload

- [x] Port the Skia/Svg.Skia update from #36255 through component
backport #37731.
- [x] Include only the required `SKPath.AddCircle` compatibility change
from #36787; exclude its unrelated SourceGen changes.
- [x] Confirm a matching SkiaSharp 4.150.1 native-assets/PDB build for
`_SkiaSharpNativeAssetsVersion`, or record an explicit release-owner
waiver.

### Integration follow-ups

- [x] Apply the aggregate review fixes for safe-area cache invalidation,
Activity-for-result cancellation ownership, and Android theme-test
semantics.
- [x] Keep the final branch payload as focused release commits without
unrelated `inflight/current` history.
- [x] Validate the #37418 and #37638 focused Android UI tests on the
aggregate branch (2/2 passed).
- [ ] Validate the #37361 focused iOS UI test on the aggregate branch.

## Already present on the SR10 base — no new merge needed

- [x] #36852 — Android Shell hidden-fragment leak; fix #36903 is already
in SR10.
- [x] #36735 — Android ActivityIndicator visibility; fix #36748 is
already in SR10.
- [x] #36853 — Android Shell DI-singleton route blank page; fix #36903
is already in SR10.
- [x] #36942 — Android UI event handling; fix #36988 is already in SR10.
- [x] #37281 — Android scrolling inside shadowed containers; backport
#37312 is already in SR10.

## Completed disposition — no backport required

- [x] #37700 — closed as intended SR10 `SwipeView.Threshold` behavior
from #36878; any SwipeItem sizing concern should be tracked separately.

## Not included yet — merge, defer, or explicitly disposition before
payload freeze

- [ ] #35301 — Windows CollectionView applies WinUI styling by default;
no linked fix PR.
- [ ] #34491 — Android CollectionView selection with
`PointerGestureRecognizer`; replacement fix #37952 remains draft against
`main`.
- [ ] #35059 — iOS app becomes unresponsive when opening a ComboBox
dropdown in landscape; no linked fix PR.
- [ ] #37407 — iOS TimePicker default `t` format forces en-US; fix
#37797 remains draft against `main`.
- [ ] #36269 — Android `SafeAreaEdges` with Shell tab navigation and
hidden TabBar; source fix #36474 remains open against `main` and has no
SR10 backport.
- [ ] #37657 — Android Shell/root-page `OnBackButtonPressed()` in
Release builds; no linked fix PR.

## Release completion

### Before merging this PR

- [ ] Refresh the authoritative query and reconcile #37723 with its
current results.
- [ ] Record an include/defer/close decision for every unresolved
regression above.
- [ ] Validate every included regression on its reported OS/version
using the `10.0.101` candidate packages.
- [ ] Complete current-head aggregate CI and resolve or explicitly waive
every required build/device/UI-test failure.
- [ ] Resolve or waive the Skia native-assets/PDB release gate.
- [ ] Bump `eng/Versions.props` from patch `100` to `101` after the
payload is frozen.
- [ ] Obtain the required independent current-head maintainer approvals.
- [ ] Merge #37746 into `release/10.0.1xx-sr10`.

### After merge

- [ ] Confirm BAR promotion and the per-build validation feed used by
the ship assessment.
- [ ] Publish and tag `10.0.101`.
- [ ] Complete the Visual Studio insertion/default-MAUI-version update.

## Notes

- No automated `/backport` command was used for this release payload.
- Supersedes #37745, which GitHub automatically closed when the
integration branch was renamed from `vs/10.0.101` to
`inflight/10.0.101`.
@sheiksyedm
sheiksyedm requested a lite review from Copilot September 2, 2026 11:24
@sheiksyedm

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests , maui-pr-devicetests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementation matches the stated root cause and includes a targeted regression test covering the default Format="t" behavior on iOS.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@sheiksyedm
sheiksyedm marked this pull request as ready for review September 2, 2026 14:38
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo changed the base branch from main to inflight/current September 2, 2026 16:48
@kubaflo
kubaflo merged commit 13f705d into dotnet:inflight/current Sep 2, 2026
129 of 143 checks passed
kubaflo pushed a commit that referenced this pull request Sep 2, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 3, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 6, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 7, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 8, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 9, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 11, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 15, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 18, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 21, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 27, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
kubaflo pushed a commit that referenced this pull request Sep 27, 2026
…ulture (#37797)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
- On iOS, TimePicker displays time in en-US 12-hour AM/PM format instead
of respecting the device's culture and 24-hour time setting — this
happens specifically when Format is left at its default value of "t"
regardless of what the device's actual region/culture is set to.

### Root Cause
- PR #31066 introduced a regression in TimePickerExtensions.UpdateTime
by selecting the formatting culture based on characters in the Format
string instead of the device’s actual culture. Formats containing t or h
were forced to en-US, while formats containing H were forced to de-DE.
Since the default Format is "t", the default TimePicker was always
rendered using the 12-hour AM/PM format, ignoring the device’s regional
settings.

### Description of Change
- Removed the t-based culture override introduced by #31066, which
incorrectly forced en-US when the default Format="t" was used. The
displayed time now uses CultureInfo.CurrentCulture, while the existing
explicit H and h behavior remains.
- Updated the native UIDatePicker locale on every update. Explicit H and
h formats continue to select 24-hour and 12-hour wheels respectively,
while other formats use the full current culture name, such as en-GB, to
preserve the language and region and prevent a previously assigned
locale from remaining stale.



### Issues Fixed
Fixes #37407
Fixes #30837

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/06a697df-121e-4bff-b5c2-2437ff467b85">
| <video
src="https://github.com/user-attachments/assets/1826ffd7-baba-4165-9b84-d1c0e63249c3">
|
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2026
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Oct 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-datetimepicker DatePicker, TimePicker community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios platform/macos macOS / Mac Catalyst s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-win AI found a better alternative fix than the PR s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

5 participants