Support » Plugin: YOP Poll » Start & end date problem

  • Resolved imamo



    Probably a bug but I’m not 100% sure. In creation of new pool I have start and end date problem.

    Image will tell everything:

    Start date: I expect it will be at least current server time not a date from previous year?
    End date: 9999-… as for start date at least current server time not that some fictional date.

    Is it possible to correct that?


    Best regards

Viewing 1 replies (of 1 total)
  • Plugin Author YOP


    Hi imamo,

    The Start Date is the one you see in Options (from the main menu) and by default, it’s set as the date when you installed the plugin.

    To set the current server time as start date edit inc/admin.php and in
    the view_edit_add_new_poll function (approximately on line 6400), replace

    value="<?php echo '' == $default_options['start_date'] ? current_time('mysql') : $default_options['start_date']; ?>"


    value="<?php echo ( 'edit' != $action ) ? current_time( 'mysql' ) : ( '' == $default_options['start_date'] ) ? current_time( 'mysql' ) : $default_options['start_date']; ?>"

    In regards to the end date, 9999-12-31 23:59:59, it allows us to verify if you’ve set an end date for your poll or not.


    YOP Team

Viewing 1 replies (of 1 total)
  • The topic ‘Start & end date problem’ is closed to new replies.