• I had to select the 10th of January, 2012 as the launch date for a site. When I did that, the countdown date on the coming soon page disappeared. I checked out the code and noticed the date is saved in the database as “10 January, 2012”. PHP doesn’t recognize this as a valid date format (“10 January 2012” or “January 10, 2012” is valid), so it ignores the year.

    I’m assuming PHP guesses the year for strtotime(’10 January, 2012′) so the output of that is the same as strtotime(’10 January 2011′). I suggest the following fixes in the code to remedy this:

    framework/admin_options.php (line 231)
    change:
    'odefault' => "31 Dec, 2011",
    to:
    'odefault' => "31 Dec 2011",

    assets/admin.js (line 14)
    change:
    $( this ).datepicker( "option", "dateFormat", 'd MM, yy' );
    to:
    $( this ).datepicker( "option", "dateFormat", 'd MM yy' );

    https://www.ads-software.com/extend/plugins/custom-coming-soon-page/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    The date countdown doesn’t show up for me. Tried the fix above, but no result…

    Any ideas?

    url: https://www.helio-lights.com

    Thread Starter Alisa R. Herr

    (@isabisa)

    Looked at your site and it looks like you just set it to Dec 31, 2011. Can I see what happens when you set it to a date next year?

    Here’s the site I got the 2012 date to work on: https://e11golf.com/

    When I use a date later then 2011, the frames with day’s, hours, sec, … doesn’t show up.
    You just see the text and the emailaddress imput…

    Thread Starter Alisa R. Herr

    (@isabisa)

    I don’t know what to tell you. That fix I explained above is how I got it to work on my client’s site using the most recent version of the plugin. The reason the 2012 dates don’t work is because the PHP date format is incorrect in their code. I’m not aware of any other issues that would affect that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Custom Coming Soon Pages] Launch date format not working for any year other than 2011’ is closed to new replies.