Skip to content

[iOS/HybridGlobalization] No space between time and AM/PM designator #102250

Closed
@tipa

Description

Description

When using hybrid globalization on iOS and using the short time specifier, there is no space in front of the "AM" or "PM".

Reproduction Steps

var date = DateTime.Today + TimeSpan.FromHours(15) + TimeSpan.FromMinutes(15);
var culture = new CultureInfo("en-US");
System.Diagnostics.Debug.WriteLine(date.ToString("t", culture));

Expected behavior

3:15 PM

Actual behavior

3:15PM

Regression?

No response

Known Workarounds

No response

Configuration

macos 14.2.8053/8.0.100 SDK 8.0.200
ios 17.2.8053/8.0.100 SDK 8.0.200

iOS 17.2

Other information

The same problem happens when using the long time format specified ("T").
The space is present as expected when not using hybrid globalization

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions