Skip Navigation

[Gelöst] CRED wrong date format

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 7 Jahre. 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.

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)

This topic contains 3 Antworten, has 2 Stimmen.

Last updated by Luo Yang vor 5 Jahre, 5 Monate.

Assigned support staff: Luo Yang.

Author
Artikel
#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

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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/