Since date and time formatting differs regionally, it makes sense to configure them to be language specific. WPML does not do this by default but here’s a way to change that.
Normally you set up the date and time formatting under Settings > General. Since there’s no WPML UI to provide different values per language, we can add a snippet of code that allows you to translate the values using WPML String Translation. First add the following code to your theme’s functions.php:
Then visit WPML > String Translation and filter by the domain “Date formats”. This should now return 2 rows for the date and time formats where you can enter the alternative values for the non-default languages.
If the Date formats domain does not appear in the dropdown yet, it might be necessary to load a page on your site that displays a date. Then refresh the String Translations page and it should appear in the list.
Striving for originality, usability, simplicity and style — Frique builds jQuery and WordPress plugins and themes that make life a little easier. Frique cares and writes about web and software usability, performance, development workflow and desire for perfection.