cipchk/ngx-countdown

ngx timer not resertting to 0 on the date part

Closed this issue · 5 comments

Bug Report or Feature Request (mark with an x)


[x] Bug report -> please search issues before submitting
[ ] Feature request
[ ] Documentation issue or request

Current behavior

The data part in <countdown [config]="{ leftTime: 10, format: 'dd:HH:mm:ss' }"></countdown> is not getting reset to 00 after countdown timer stops.
Currently it is being displayed as below:
01:00:00:00.
This will give a wrong impression to end users.
Stackblitz link: https://stackblitz.com/edit/ngx-countdown-setup-mfbxtp

Expected behavior

The timer should display like below after timer stops.
00:00:00:00.

Environment


Angular version: X.Y.Z

ngx-countdown version: X.Y.Z

Browser:
- [x] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX

Others:

Your link stackblitz.com/edit/ngx-countdown-setup-mfbxtp seems to be broken, can you fix this?

@cipchk The link is working fine for me. But this is all i had over there -
<countdown [config]="{ leftTime: 10, format: 'dd:HH:mm:ss' }">

@rohit-jagannath Maybe duplcated of #49

I can confirm that this problem still exists. <countdown [config]="{ leftTime: 10, format: 'dd:HH:mm:ss' }"> stops at 01:00:00:00