Skip to content
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

Date Format Update Issue in PrimeNG Datepicker #17616

Open
francescoGrn opened this issue Feb 7, 2025 · 1 comment
Open

Date Format Update Issue in PrimeNG Datepicker #17616

francescoGrn opened this issue Feb 7, 2025 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@francescoGrn
Copy link

Date Format Update Issue in PrimeNG Datepicker

This sample application demonstrates an issue with the reactive update of the date format in a primeNG component.

Problem Description

When the date format is changed (e.g., from European format dd/mm/yy to American format mm/dd/yy), the datepicker component does not immediately reflect the change. The user needs to re-select the date for the new format to be applied. So this behavior is not fully reactive.

Steps to Reproduce

  1. Select a date in the datepicker.
  2. Change the date format using the provided buttons.
  3. Observe that the displayed date does not update to the new format until the date is re-selected.

Expected Behavior

The datepicker should update the displayed date immediately when the format is changed, without requiring the user to re-select the date.
Below

@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 7, 2025
@ubiqueuety
Copy link

confirm the problem by configuring a different locale from us in angulat.json:
......
"i18n": {
"sourceLocale": "it",
"locales": {
"it-IT": {
"translation": "src/locale/messages.it.xlf",
"baseHref": ""
}
}
}
.......,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants