Skip to content

DatePicker module: system locale not reflected in how RNW apps format or translate dates  #4791

Closed

Description

Steps to Reproduce

Run the DatePicker example in Playground\RNTester or create a test app using the date picker component.

Expected Behavior

Changing Regional Format in the Windows Settings app should affect how the underlying CalendatDatePicker XAML control formats dates, as well as their display language.

Actual Behavior

No change can be observed in the RN app, even though they're reflected in the shell.
(Disregard the date format settings in the screenshot of my demo - I commented out the props they controlled)

region_date

Activity

  1. ghost added
    Needs: Triage 🔍
    on May 5, 2020
  2. changed the title [-]Describe the problem[/-] [+]system locale not reflected in how RNW apps format or translate dates [/+] on May 5, 2020
  3. chrisglein commented on May 7, 2020

    @chrisglein
    Member

    Sounds like there is some level of involvement for the behalf of datepicker, where it has bugs that are not internationlization ready. We should be crisp about where the platform is not following through, versus where the module is ready.
    The intl JavaScript module is supposed to expose much of this kind of functionality. It should be available on Chakra at least (pending on Hermes).
    We need to figure out what level of support we can give to improve the community date picker versus supporting it as it is. If there's something that's not working just on Windows versus not working on Android/iOS.

    Igor Klemenski (@rectified95) can you clarify what's Windows-only here and what's lacking in the control as a whole?
    (for the latter maybe we open issues on that repo?)

  4. added
    Needs: Author Feedback
    and removed
    Needs: Triage 🔍
    on May 7, 2020
  5. ghost added
    Invalid Triage
    on May 7, 2020
  6. ghost added
    no-recent-activity
    on May 14, 2020
  7. rectified95 commented on May 28, 2020

    @rectified95
    ContributorAuthor

    Sorry this one slipped through the cracks. Commenting to prevent the issue getting closed. Assigning to myself while I look into intl.

  8. ghost added
    Needs: Attention 👋
    on May 28, 2020
  9. ghost removed
    Needs: Author Feedback
    on May 28, 2020
  10. ghost removed
    no-recent-activity
    on May 28, 2020
  11. 2 remaining items

  12. added
    Extensions
    and removed
    Needs: Attention 👋
    on Jun 1, 2020
  13. added
    Needs: Triage 🔍
    on Apr 28, 2021
  14. NickGerleman commented on Apr 28, 2021

    @NickGerleman
    Contributor

    Have a PR out removing DatePicker. I would guess this issue still affects the community module version. Potentially affects what to do with this issue.

  15. asklar commented on Apr 29, 2021

    @asklar
    Member

    The core control (DatePickerIOS / DatePickerAndroid) is ejected (they warn but they work), we have a Windows only API DatePicker.

    We want to redirect folks to the community module; this yellow boxes in RNW 0.64, so we should leave enough time for people to see it before we remove it from RNW core. Slate it for removal in 0.66?

  16. removed
    Needs: Triage 🔍
    on Apr 29, 2021
  17. asklar commented on Apr 29, 2021

    @asklar
    Member

    Igor Klemenski (@rectified95) can you check if the community module has this issue filed and if so, close this one.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: GlobalizationExtensionsbug

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions