Skip Navigation

[Résolu] CRED wrong date format

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
My site is in French and the setted language of my WordPress is French too but the date format of my date field in CRED form is still in English. I would like it to be displayed as "j F Y".
Solution:
Cred date picker supports following date format:
$_supported_date_formats = array('F j, Y', //December 23, 2011
'Y/m/d', // 2011/12/23
'm/d/Y', // 12/23/2011
'd/m/Y' // 23/22/2011
);
You can see it in CRED source code, file cred-frontend-editor\embedded\classes\CredForm.php, line 45~49.

So CRED does not support the date format: j F Y
Relevant Documentation:

This support ticket is created Il y a 8 années et 2 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Marqué : 

This topic contains 3 réponses, has 2 voix.

Last updated by Luo Yang Il y a 6 années et 8 mois.

Assisted by: Luo Yang.

Auteur
Publications
#360202

I have issues with CRED date format. My site is in French and the setted language of my WordPress is French too but the date format of my date field is still in English. I would like it to be displayed as "j F Y". This format is already setted in my Setting page.

I know that CRED can't take format="" in its field but do you have an alternative?

My WordPress and plugins are up to date.

Thank you

#360314

Dear Jean,

Cred date picker supports following date format:
$_supported_date_formats = array('F j, Y', //December 23, 2011
'Y/m/d', // 2011/12/23
'm/d/Y', // 12/23/2011
'd/m/Y' // 23/22/2011
);

You can see it in CRED source code, file cred-frontend-editor\embedded\classes\CredForm.php, line 45~49.

So CRED does not support the date format: j F Y
And I put it into our to-do list as a feature request, our developers will take care of it, but there isn't any ETA for it.

#360524

Ok, so I hope it will be resolved quickly!

Thank you

#555587

Here is the feedback from our developers, it is fixed in Types version 2.3, but I am not sure when will it be released, I suggest you subscribe to our blog to get the updated news:
https://toolset.com/blog/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.