WheelPickerCompose icon indicating copy to clipboard operation
WheelPickerCompose copied to clipboard

Add locale-aware date ordering support

Open YuryPashkov opened this issue 1 month ago • 0 comments

Description:

Currently, the date picker uses a hardcoded day/month/year order which doesn't respect user locale preferences.

Key Changes:

  • Added useLocaleOrdering flag to respect system locale date format
  • Defaults to false to maintain current behavior
  • Supports MDY, DMY, and YMD formats based on user locale
  • Includes sample implementation and tests

Motivation:

Different cultures have different conventions for displaying dates Some locales use day-month-year (DMY) order (e.g., UK, Europe) Others use month-day-year (MDY) order (e.g., US) Some use year-month-day (YMD) order (e.g., East Asia)

I can do a PR that adds support for automatic locale-based date ordering while maintaining backward compatibility. What do you think about this?

YuryPashkov avatar Nov 14 '25 07:11 YuryPashkov