• Resolved Ramzii

    (@ramzii)


    I keep getting:

    Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() [<a href='datetime.--construct'>datetime.--construct</a>]: Failed to parse time string (22/04/2013) at position 0 (2): Unexpected character' in /home/kern/domains/DOMAIN.nl/public_html/wp-content/plugins/hms-testimonials/admin.php:984 Stack trace: #0 /home/kern/domains/DOMAIN.nl/public_html/wp-content/plugins/hms-testimonials/admin.php(984): DateTime->__construct('22/04/2013') #1 [internal function]: HMS_Testimonials->testimonial_new_page('') #2 /home/kern/domains/DOMAIN.nl/public_html/wp-includes/plugin.php(406): call_user_func_array(Array, Array) #3 /home/kern/domains/DOMAIN.nl/public_html/wp-admin/admin.php(151): do_action('testimonials_pa...') #4 {main} thrown in /home/kern/domains/DOMAIN.nl/public_html/wp-content/plugins/hms-testimonials/admin.php on line 984

    Any idea?

    EDIT: It seems that I cant add a testimonial that has a date from the past (yesterday, or any day before today)

    Can this be fixed?

    https://www.ads-software.com/extend/plugins/hms-testimonials/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff K

    (@kreitje)

    Hi Ramzii,

    Can you provide me the exact date that you are using?

    Thread Starter Ramzii

    (@ramzii)

    Thanks for the quick response.

    22/04/2013 didnt work

    04/05/2013 did work

    04 mei 2013 didnt work

    A little feedback; I would find it more user- and styling friendly to allow the user to choose which date styling he puts in. Months fully written should be possible, or other separators. Slashes are kind of ’90s. There are designs where the mandatory / / / just dont fit in.

    Plugin Author Jeff K

    (@kreitje)

    Hi Ramzii,

    At this time I am currently using DateTime which wants the month first. I will be adding in the jquery ui datepicker in the update.

    You can use hyphens if you don’t want to use slashes. ??

    That being said, the admin screens are required to use that format however you CAN set the format that is displayed to your users. Checkout the settings tab for the plugin.

    “5. Date format”

    You can use d/m/Y for 22/04/2013 or d M Y for 22 May 2013.

    Thread Starter Ramzii

    (@ramzii)

    Inserts megusta face.

    Thanks! Looking forward to the update.
    Im currently still setting up my site with your plugin, when its ready and online you can expect a coffee sir.

    Plugin Author Jeff K

    (@kreitje)

    I have just pushed an update. It may take a little while for WordPress installs to pick it up.

    The datepicker is now in. I have also caught the fatal error so you will get a friendly message asking you to pick a valid format instead.

    Jeff

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error date?’ is closed to new replies.