Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
https://wpjobmanager.com
GNU General Public License v3.0
895 stars 366 forks source link

WPJM Date form-fields allow setting dates in the past. #2705

Closed pgk closed 5 months ago

pgk commented 6 months ago

Describe the bug

You can set a date in the past when entering expiry date or scheduled date.

To Reproduce Steps to reproduce the behavior:

  1. Go to your Add-A-Job page
  2. On schedule date I am able to set the date to the past

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior Do not allow selecting a past date in the first place.

Hastibe commented 6 months ago

Yes, this would be helpful to prevent--regularly have users choosing a closing date in the past by accident when posting a new job.

flamuren commented 5 months ago

This has just happened on my website. Can confirm users may pick wrong dates.