Greetings all,
This is my first forum post and I'm looking forward to receiving your golden nuggets of valuable wisdom.
I'm trying to figure out a way to adjust the format of the datepicker elements globally throughout the backend, primarily from d/m/Y (UK style) to m/d/Y (US style), based on the locale settings, or alternatively a new 'preferred date format' property added to the backend user class.
I have extended the UserPreference model and controller to allow this to be saved, which is working fine. I have been looking into a few approaches, including the following:
- Intercept the parsing of the YAML file and dynamically set the date format based on the contents of the above.
- Override the DatePicker class somehow and add my logic in there.
Before I get stuck down a rabbit hole of trying to extend/override core October CMS functionality, can anybody point me in the right direction? Perhaps there is a much easier way to do this.
Thanks
Jon
Last updated