Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Countdown block - Recurring countdown loop not working properly #3338

Open
andeng1106 opened this issue Oct 3, 2024 · 1 comment
Open

Countdown block - Recurring countdown loop not working properly #3338

andeng1106 opened this issue Oct 3, 2024 · 1 comment
Labels
[block] Countdown bug Something isn't working

Comments

@andeng1106
Copy link

andeng1106 commented Oct 3, 2024

Describe the bug

  • Sample test: I set 10:55AM as the time then the countdown ended. I went back again 11:55AM and expected the 1 minute countdown to count again on frontend (don't mind the editor). But instead, it counted on 11:56AM.
  • Tried again another loop but it starts counting on 12:57PM
  • Issue: Every loop it adds +1 minute before the countdown starts again
  • Issue in frontend only

Here's a sample test page: https://gambitsandbox.instawp.xyz/andrea/countdown-recurring/

To Reproduce
Steps to reproduce the behavior:

  1. Add a new page
  2. Add a Countdown block
  3. Add these settings:
    Time: 10:55 AM
    Date: Oct 2, 2024
    Countdown Duration: 1 minute
    Restart after no. of hours: 1 hour
  4. Return at 11:55AM
  5. Check if the countdown started to count again
  6. See that it starts counting on 11:56AM
  7. Return at 12:55PM
  8. Repeat step 5
  9. See that it starts counting on 12:57PM

Expected behavior

  • Countdown should count again on 11:55AM / 12:55PM / 1:55PM and so on as long as 1 hour loop
  • Should not add +1 minute on each loop

Actual Behavior / Issue:
It didn't count on 11:55AM, instead the Countdown counts on 11:56AM
After another loop at 12:55PM, it counts on 12:57PM

Screenshots

Desktop (no specific):

  • OS: MacOS
  • Browser: Chrome
  • Browser Version: 129.0.6668.70
@andeng1106 andeng1106 added bug Something isn't working [block] Countdown labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[block] Countdown bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@andeng1106 and others