Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Franky

    (@liedekef)

    Not possible for now in the frontend.
    Please make a feature request at http://www.e-dynamics.be/wordpress

    Thread Starter Manu-PB

    (@manu-pb)

    OK, awaiting an agrade.

    In the meantime, here is a workaround :

    in emefs.js around line 49, remplace :
    jQuery("#event_start_date, #event_end_date").datepick({ dateFormat: 'yy-mm-dd' });
    With
    jQuery("#event_start_date, #event_end_date").datepick({ dateFormat: 'dd/mm/yyyy' });
    This will print the localized date for the user.

    in emefs.php around line 215, replace :
    $event_data['event_start_date'] = esc_attr( $event_data['event_start_date'] ) ;
    with :

    $startdate = $event_data['event_start_date'];
    $startyear = substr($startdate,8,2);
    $startmonth = substr($startdate,3,2);
    $startday = substr($startdate,0,2);
    $event_data['event_start_date'] = $startyear.'-'.$startmonth.'-'.$startday;

    This will return the date in the regular format for EMEFS.

    Hope it helps

    Plugin Author Franky

    (@liedekef)

    The next version will use the locale of the site in question to represent the date to the person.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change date format’ is closed to new replies.