Can't change date format by Community Preferences
Hi everybody, I need to know if I’m doing something wrong about this question: when I change my date format in Community Events Preferences, nothing changes in my frontend. I tried using TwentyEleven and deactivating another plugins but this doesn’t seem to solve, as you can see in this screenshot.
The setting you are referring to affects the dates in some places, such as the list of events (as found at example.com/community/events/list), but not others (such as the datepicker). The principle reason for this is that the component used to form the datepicker does not understand date formats expressed in the style of a PHP date() string.
Some notes from Ryan:
* You may wish to override the submission form template and remove the .datepicker class, replacing it with something unique like .your-custom-class
* If you do that then please also update the code in the gist appropriately (input.datepicker might become input.your-custom-class)
So this would require some development know-how to implement but it does seem to be possible – however to be clear this isn’t something the date format field you have referred to is intended to influence.
You could either edit one of your templates and wrap it in <script> tags or – perhaps more “correctly” – you would enqueue it using the WordPress API:
I’m afraid however we can’t really spare much time to talk through that in detail – and the above link probably does a better job of explaining this than I can.
Definitely though feel free to add a note on our UserVoice page if you feel there is a good case for making the datepicker date formats more flexible via our plugin’s settings page – it would also be interesting from our perspective to see how many others might be in support of this: