WordPress.org

Ready to get started?Download WordPress

Forums

HMS Testimonials
[resolved] error date? (6 posts)

  1. Ramzii
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/hms-testimonials/

  2. Jeff K
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ramzii,

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

  3. Ramzii
    Member
    Posted 1 year ago #

    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.

  4. Jeff K
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. Ramzii
    Member
    Posted 1 year ago #

    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.

  6. Jeff K
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.