For events EE4 defaults to 12hour-format with am/pm. For a customer with a localized (German) WordPress this caused problems since the date-picker would write “nachm.” (“nachmittags” = German for “afternoon”) into the field, which the system would not understand and default to “am”.
But could you maybe please:
* make sure the date-picker writes a format that EE4 then knows how to handle? And if it’s am/pm always (no localized version)
* add a switch to the configuration for 12h/24h-format
Maybe you could even work with the date/time-format that WordPress has in its settings? There 24-hours-format was already selected.
Sidenote, in that context: Germans are more used to 24.10.2018 instead of the reverse notation 2018-10-24. Maybe that could be another option to add. But it’s less critical than being able to have a working time-picker.
Thanks for making these suggestions. Last I checked there were some limits to using whatever was set in WP > Settings General, so they can’t use those settings for the datetime & ticket editors.
One thing you can do is set that your custom callback on the FHEE__espresso_events_Pricing_Hooks___set_hooks_properties__date_format_strings filter to use your preferred date format. e.g change the code to:
Thanks. Modifying the behaviour through hooks works for us for the moment. But please consider turning that into a configuration-option, at least to switch between 12h/24h-mode. And maybe look into why the picker uses a localised version while after selecting a time the configuration-field can only deal with am/pm it seems.
The picker using a localized version on your site might be a plugin conflict. If I understand what you’re reporting, it shouldn’t be adding an AM/PM under any circumstances.
Viewing 3 reply threads
The support post ‘Event-date/time: Problem with localized am/pm-formats and date-picker-dialog’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.