Hi everyone,
In french we write hours like that : 11h34 (h = heures). I'd like to format hours this way in Contao configuration but don't know how to do it.
Thanks for help.
Hi everyone,
In french we write hours like that : 11h34 (h = heures). I'd like to format hours this way in Contao configuration but don't know how to do it.
Thanks for help.
Last edited by charled; 03/19/2016 at 22:09.
Hi,
you could use this time format:Explanation:Code:H\hi
- "H" returns the hours with leading zeros
- "\h" return the "h" (The "\" escapes the letter)
- "i" return the minuites
Greeting, Cliff
Extensions :: Github :: No support via PM.
Hi Cliffen,
Thanks for your answer. I did it but datepicker doesn't see the escape character (\) and so consider h as hour with no leading zero.
Is there a way to bypass or deactivate datepicker ?
Last edited by charled; 03/17/2016 at 16:26.
I think it would be better to distinguish between the configuration in the backend and the output in the frontend.
I would suggest:
- keep the default englisch format in the "system setitngs" ... this will be used in backend
- define your custom time format in the page settings (see root page of your page tree) ... this will be used in frontend
Regards, Cliff
Extensions :: Github :: No support via PM.
Just tried but doesn't work. And work no more in MetaModels.
Thanks spooky. I know it because I wrote it ;-) Charled and JLBA are the same person.
Bookmarks