Title: Botched plugin
Last modified: December 24, 2025

---

# Botched plugin

 *  [carlgymlelocal](https://wordpress.org/support/users/carlgymlelocal/)
 * (@carlgymlelocal)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/botched-plugin-2/)
 * Tons of typos in the code; stylee, scritps, scrpts, folder named “assents” instead
   of “assets”, etc.
   Copy pasted code from a google maps plugin, forgot to change
   the description.Talks about loading a whatsapp box in descriptions.Reason I looked
   into it this is the min_date and max_date values didn’t process dates correctly.
   A quick cursor run through fixed it for me:Issue at line 15 in assents/js/script.
   js: the date string is split but not converted to numbers before creating the
   Date. Converting the components to integers:              configdat.minDate =
   new Date(parseInt(date_min_val_arr[0]), parseInt(date_min_val_arr[1])-1, parseInt(
   date_min_val_arr[2]));
 * Issue: date components are strings after splitting, causing incorrect Date construction.
   Converting them to integers with parseInt() before creating the Date. Fixing 
   both minDate and maxDate parsing:
                   configdat.maxDate = new Date(
   parseInt(date_max_val_arr[0]), parseInt(date_max_val_arr[1])-1, parseInt(date_max_val_arr[
   2]));
 * Fixed the date parsing issue. The problem was that after splitting “2026-01-04”
   by -, the values were strings, and JavaScript’s Date constructor can misparse
   them.
   Posting this in case anyone else runs into this plugin, it’s buggy.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbotched-plugin-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this review.

 * ![](https://ps.w.org/date-picker-for-contact-form-7/assets/icon-256x256.png?rev
   =3471439)
 * [Date Picker For Contact Form 7](https://wordpress.org/plugins/date-picker-for-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/date-picker-for-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/date-picker-for-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/date-picker-for-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/date-picker-for-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/date-picker-for-contact-form-7/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [carlgymlelocal](https://wordpress.org/support/users/carlgymlelocal/)
 * Last activity: [5 months, 2 weeks ago](https://wordpress.org/support/topic/botched-plugin-2/)