Title: Start &amp; end date problem
Last modified: August 21, 2016

---

# Start & end date problem

 *  Resolved [imamo](https://wordpress.org/support/users/imamo/)
 * (@imamo)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/start-end-date-problem/)
 * Hi,
 * 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: [http://note.io/19WKpd3](http://note.io/19WKpd3)
 * _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?
 * Thanks!
 * Best regards
 * [http://wordpress.org/plugins/yop-poll/](http://wordpress.org/plugins/yop-poll/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/start-end-date-problem/#post-4489100)
 * 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']; ?>"`
 * with
 * `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.
 * Regards,
 * YOP Team

Viewing 1 replies (of 1 total)

The topic ‘Start & end date problem’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

## Tags

 * [end date](https://wordpress.org/support/topic-tag/end-date/)
 * [start date](https://wordpress.org/support/topic-tag/start-date/)

 * 1 reply
 * 2 participants
 * Last reply from: [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/start-end-date-problem/#post-4489100)
 * Status: resolved