cipchk / ngx-countdown

Simple, easy and performance countdown for angular
https://cipchk.github.io/ngx-countdown/
MIT License
192 stars 57 forks source link

ngx timer not resertting to 0 on the date part #71

Closed rohit-jagannath closed 3 years ago

rohit-jagannath commented 4 years ago

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:

cipchk commented 4 years ago

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

rohit-jagannath commented 4 years ago

@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' }">

cipchk commented 4 years ago

@rohit-jagannath Maybe duplcated of #49

Blamax commented 3 years ago

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

cipchk commented 3 years ago

About more than 24 hours demo via https://github.com/cipchk/ngx-countdown/blob/master/src/app/components/more-than-24-hours.component.ts