Evan Herman on "[Plugin: Timeline Express] French date format issue"

ساخت وبلاگ

I've installed the lastest version of WP (4.5.2) and of your beautifull component timeline. I searched for my issue into the previous posts, but I didn't find the solution. When I enter a new announcenement, I use a Jquery UI DatetimePicker that fills the date zone with french format d/M/Y. This format doesn't fit with the expected format (M/d/Y) I guess. If I enter manually a right date like 05/15/2016 for instance (instead of 15/05/2016 as we do in France), I can save the right date. How or where can I fix this problem, please ?
Thx in advance for your help.

https://wordpress.org/plugins/timeline-express/

Hi Jiceo,

I thought that I had things localized for foreign users. just tested, and it doesn't look to be working at the moment. I will nee do to do a small update, and patch the issue.

Thanks,
Evan

Hi Jiceo,

To follow up, the following snippet should help out:

add_filter( 'cmb2_localized_data', 'prefix_cmb_set_date_format' );
function prefix_cmb_set_date_format( $l10n ) { $l10n['defaults']['date_picker']['dateFormat'] = 'dd/mm/yy'; retu $l10n;
}

You'll want to add that to your themes functions.php file - which will localize the date picker for you.

Let me know if that helps!

Thanks,
Evan

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 56 تاريخ : سه شنبه 21 ارديبهشت 1395 ساعت: 5:02