question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngx timer not resertting to 0 on the date part

See original GitHub issue

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:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Blamaxcommented, Jan 14, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

NGX countdown timer not counting down accurately for ...
NGX countdown timer not counting down accurately for 'leftTime' parameter is greater than 24 hrs. Save this question. Show activity on this ...
Read more >
Lua Ngx API - OpenResty Reference - Read the Docs
The uri argument must be a Lua string and cannot be of zero length, ... Returns current date (in the format yyyy-mm-dd )...
Read more >
Problem with ngx.timer.at and resty-ression - Google Groups
1) Resty-session is configured with an external store for session data. In this case, if session data is stored in redis or memecached,...
Read more >
Stop / reset JavaScript in a storyline - E-Learning Heroes
Hello, I have a timer that I built from a Storyline provided in another post; it uses a javascript snippet to start the...
Read more >
How to reset a form using jQuery with .reset() method?
<input type="reset"> · Syntax for reset(): formObject.reset() · Syntax to convert jQuery element to a JavaScript object. $(selector)[0].reset().
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found