Skip to content

Date Display Truncated with Czech Locale #495

@LynSisCZ

Description

@LynSisCZ

Current behaviour

When using Czech locale (cs), dates are being displayed incorrectly as truncated format: "01. 09. 20" instead of the expected full format "01. 09. 2025".

Expected behaviour

Date should display as: 01. 09. 2025 (12 characters) or 01.09.2025.

How to reproduce?

<DatePickerInput
    locale={"cs"}
    // ... other props
/>

Preview

Image

Root cause: The maxLength={10} in TextInputMask.tsx constraint cuts off the last 2 characters of the full 4-digit year in Czech locale formatting

  • react-native-paper-dates: 0.22.49

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions