Describe the bug
When showSeconds is false but showTime is true, seconds should be set to zero and not set to the current time seconds.
Same bug as for primeng primefaces/primeng#18567
Reproducer
https://stackblitz.com/edit/vitejs-vite-etgryuao?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
Click on Calendar, select any date and look at the preview string below
Expected behavior
I'd expect, that when no showSeconds is set, the date is formatted to for example 12:50:00, and not 12:50:23 (or whatever seconds are in that moment)
Describe the bug
When showSeconds is false but showTime is true, seconds should be set to zero and not set to the current time seconds.
Same bug as for primeng primefaces/primeng#18567
Reproducer
https://stackblitz.com/edit/vitejs-vite-etgryuao?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
Click on Calendar, select any date and look at the preview string below
Expected behavior
I'd expect, that when no showSeconds is set, the date is formatted to for example 12:50:00, and not 12:50:23 (or whatever seconds are in that moment)