• Resolved ZLC

    (@kindnessville)


    Hi Nabil,

    I hope you are well! I am using your timer inline with some text to display how many days someone has left before time runs out.

    My message is “You have x hour(s) to access this page.”

    I’m wondering how to round up the digits if there are any minutes and seconds left.

    In other words, if I set it to 72 hours, it will immediately display as 71 hours instead of 72.

    If you have a solution for this, I would love to know what it is. Thank you so much for all you do.

    I hope you have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @kindnessville

    The timer round up the digits automatically when you hide the minutes and seconds blocks under Appearance > Elements > Timer Label as shown in this screenshot: https://cln.sh/cGp1fYQb

    Thread Starter ZLC

    (@kindnessville)

    I’m sorry. I’m probably not being clear. So, if I set the timer for 3 hours, when I go to the page with the timer inline, it will display at 2 hours (probably because the timer is automatically counting down and is 2 hours and 59 minutes…). This doesn’t give an accurate representation of how much time they have since they can’t see the minutes or seconds. I’m wondering if there’s a way to round the timer up so anything between 2 hours 59 minutes 59 seconds to 2 hours 0 minutes 1 second displays as “3 hours.” I hope I’m being clearer.

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Thanks for the clarification. Unfortunately, this feature is not currently available, but I’ll make a note of your suggestion for future releases.

    Thread Starter ZLC

    (@kindnessville)

    Thank you, Nabil! I appreciate your response. It makes a bigger difference when I only display “Days.”

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.