Bug Description
The seconds logic is not working when using the time-picker only feature with useSeconds.
Steps to Reproduce
- Using timer to display time picker only with seconds.
- Click on and update the '...'Hours, Minutes, and Seconds.
- Added an alert to display the changed time using .ts function onDateChange(value: Date) { alert("The Date: " + value); ...}.
- Only the Hour and Minutes changed.
Expected Behavior
Expect to have the Seconds update the date value the same as the Hours and Minutes update.
Actual Behavior
Only the Hours and Minutes changed the date value. Thee Seconds changes did not affect the date value.
Environment
atlasfry
- Angular Version:20.3.1
- ngxsmk-datepicker Version: 2.2.2
- Browser:Chrome Version 141.0.7390.123
- Platform: Windows 11.
- Ionic Version N/A
Code Example
.TS:
Import { NgxsmkDatePickerComponent } from ngxsmk-datepicker
…
Imports: [
…
NgxsmkDatePickerComponent,
…
]
Export classmMyTest {
…
onDateChange(value: Date) {
…
alert("value: " + value);
…
}
…
}
```html
…
<div>
<ngxsmk-datepicker mode="'single'" [displayFormat]="'hh:mm:ss'" [showSeconds]="true" [timeOnly]="true" [use24Hour]=true [locale]="'en-US'" [theme]="'light'" > </ngxsmk-datepicker>
<div>
…
## Screenshots
If applicable, add screenshots to help explain your problem.
<img width="775" height="199" alt="Image" src="https://github.com/user-attachments/assets/1c008e79-33dd-41e7-b0b4-87f4eaf05171" />
## Additional Context
Add any other context about the problem here.
## Possible Solution
If you have ideas on how to fix this, please share them.
Bug Description
The seconds logic is not working when using the time-picker only feature with useSeconds.
Steps to Reproduce
Expected Behavior
Expect to have the Seconds update the date value the same as the Hours and Minutes update.
Actual Behavior
Only the Hours and Minutes changed the date value. Thee Seconds changes did not affect the date value.
Environment
atlasfry
Code Example
// Your component code.TS:
Import { NgxsmkDatePickerComponent } from
ngxsmk-datepicker…
Imports: [
…
NgxsmkDatePickerComponent,
…
]
Export classmMyTest {
…
onDateChange(value: Date) {
…
alert("value: " + value);
…
}
…
}