You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicking the today button in a DatePicker with showTime sets the current date and time as expected if the input is empty. However, if the input already contains a value then only the date is changed to the current date but the time remains unchanged.
I encountered the problem using PrimeNG 19, but it also happens with 18. The stackblitz reproducer uses PrimeNG 18 with p-calendar because I can't update the version there without stackblitz breaking.
Describe the bug
Clicking the today button in a DatePicker with showTime sets the current date and time as expected if the input is empty. However, if the input already contains a value then only the date is changed to the current date but the time remains unchanged.
I encountered the problem using PrimeNG 19, but it also happens with 18. The stackblitz reproducer uses PrimeNG 18 with p-calendar because I can't update the version there without stackblitz breaking.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/github-sww9u6cd?file=src%2Fapp%2Fapp.component.html
Environment
Windows 11
Angular version
19.1.5
PrimeNG version
v19
Node version
v20.18.1
Browser(s)
Firefox and Chrome
Steps to reproduce the behavior
<p-date-picker [showButtonBar]="true" [showTime]="true" />
Expected behavior
The time should change to the current time as is the case when clicking the button if the input is empty.
The text was updated successfully, but these errors were encountered: