WordPress.org

Ready to get started?Download WordPress

Forums

Countdown Timer
[resolved] Day off by 1 (7 posts)

  1. seth.burleigh@gmail.com
    Member
    Posted 2 years ago #

    The countdown timer is off by 1 day. Is there a way to turn off the hover date/time so that I can just change the date and not confuse my users?

    http://wordpress.org/extend/plugins/countdown-timer/

  2. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    Can you provide an example of what you are seeing and steps to reproduce?

  3. seth.burleigh@gmail.com
    Member
    Posted 2 years ago #

    Sure.

    Here is the page where the code is located: http://66.147.242.158/~corebaby/resources/travel-opportunities/australia-2013/ (Tour Summary > Departing in: [countdown code])

    Here is the actual code being used: [fergcorp_cdt_single date="10 June 2013"]

    It should match the "Departing in" located here (Tour Summary > Departing in): http://www.eftours.com/preview-tour.aspx?pt=JA-1132835

    Ideally I'd like them to match and keep the hover - but if that is impossible, and I can disable the hover, then I can "fake" the date and it will match.

    Thanks!

  4. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    What time zone is your blog set to?

  5. seth.burleigh@gmail.com
    Member
    Posted 2 years ago #

    Pacific (Los Angeles). I change to the UTC offset if necessary.

  6. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    So technically speaking, the countdown timer is not off by one day (http://www.timeanddate.com/date/durationresult.html?m1=7&d1=5&y1=2012&h1=10&i1=15&s1=58&m2=6&d2=10&y2=2013&h2=0&i2=0&s2=0). It really is 339 days, unless you round up. And I think that's what the other site is doing.

    There are a couple of ways you can work around this issue, however I think the best way is to set your time to "10 June 2013 23:59" and then change onHover Time Format to "F jS, Y" (removing "g:i a").

    This will essentially add an extra day (well, one minute short of a day) and not display the time, which you don't care about anyway I think.

    Make sense?

  7. seth.burleigh@gmail.com
    Member
    Posted 2 years ago #

    Yes, thank you for your help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.