[TYPO3-english] BE datetime field preset time

Jigal van Hemert jigal.van.hemert at typo3.org
Wed Dec 18 10:08:04 CET 2013


Hi,

On 17-12-2013 20:50, Jan Bednarik wrote:
> is it possible to preset time in the datetime picker? Editors don't like
> that the current time is displayed there, because they in most cases
> need to input 00 into minutes field and so they would like to have 00
> there as default.
>
> (It's 4.5).

TCA is a PHP array, so you can set any default value you want for a 
date(time) field. If you build an expression which is the current time 
with minutes set to zero then the minutes are zero by default.
I'm not sure what the behaviour of the ExtJs datepicker is when you pick 
another day, but I suspect that it won't change the time in such a case.

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list