Skip to content

Time-picker and date-time-picker parse valid input to 'Invalid Date' for some locales #13303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Slevunio opened this issue May 26, 2025 · 0 comments

Comments

@Slevunio
Copy link

Is this a bug, enhancement, or feature request?
Bug

Briefly describe your proposal.
Time picker parses valid time input to 'Invalid Date' for some locales.
Date-time picker is also affected.

Repro steps:

  1. Open https://sap.github.io/fundamental-ngx/#/core/time-picker#locale
  2. In "Locale option" select "fr"
  3. Put some value in time input using keyboard, e.g. "10:25"
  4. Focus out

Expected:
Value is properly parsed to FdDate object

Actual:
In this example you can see only red border suggesting that value is invalid. There is also an error in console.
I've been working on this a bit locally and problem occurs for many locales (e.g. fr, pl, de and many more). After FdDate object is created, all of its fields are set to undefined. Issue also affects date-time picker

Which versions of Angular and Fundamental Library for Angular are affected? (If this is a feature request, use current version.)
"@angular/core": "^19.2.3",
"@fundamental-ngx/core": "^0.54.0" -> but latest one is also affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant