[FEATURE] Evaluate starttime and stoptime fields as datetime
authorSteffen Gebert <steffen.gebert@typo3.org>
Sun, 5 Jun 2011 19:18:45 +0000 (21:18 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Wed, 8 Jun 2011 19:21:54 +0000 (21:21 +0200)
As we now can rely on the cache lifetimes of TYPO3's page cache (thanks
to #20473), we can now safely enable editors to also define start and
stop times with a precision of a minute, not only per day. Thus evaluate
the fields as datetime, not only as date.

Change-Id: I1a6a63cc4dd60d51139562979553a4f432ef6642
Resolves: #27228
Reviewed-on: http://review.typo3.org/2534
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
t3lib/stddb/tbl_be.php
t3lib/stddb/tbl_pages.php
typo3/sysext/cms/tbl_cms.php
typo3/sysext/cms/tbl_tt_content.php

index 920463d..cdb8d94 100644 (file)
@@ -256,9 +256,9 @@ $TCA['be_users'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                        )
                ),
@@ -266,9 +266,9 @@ $TCA['be_users'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0, 0, 0, 12, 31, 2020),
@@ -825,9 +825,9 @@ $TCA['sys_news'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0'
                        )
                ),
@@ -836,9 +836,9 @@ $TCA['sys_news'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0'
                        )
                ),
index e8f7241..7e3fbf1 100644 (file)
@@ -176,7 +176,7 @@ $TCA['pages'] = array(
                                'type' => 'input',
                                'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                        ),
                ),
@@ -187,7 +187,7 @@ $TCA['pages'] = array(
                                'type' => 'input',
                                'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0, 0, 0, 12, 31, 2020),
index a63b1af..cb9abbd 100755 (executable)
@@ -252,9 +252,9 @@ $TCA['fe_users'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                        )
                ),
@@ -263,9 +263,9 @@ $TCA['fe_users'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0,0,0,12,31,2020),
@@ -528,9 +528,9 @@ $TCA['pages_language_overlay'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0'
                        )
                ),
@@ -539,9 +539,9 @@ $TCA['pages_language_overlay'] = array(
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0,0,0,12,31,2020),
@@ -912,9 +912,9 @@ $TCA['sys_template'] = array(
                        'exclude' => 1,
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0'
                        )
                ),
@@ -923,9 +923,9 @@ $TCA['sys_template'] = array(
                        'exclude' => 1,
                        'config' => array(
                                'type' => 'input',
-                               'size' => '8',
+                               'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0,0,0,12,31,2020),
index aae25b6..1b334e3 100755 (executable)
@@ -184,7 +184,7 @@ $TCA['tt_content'] = array(
                                'type' => 'input',
                                'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                        ),
                ),
@@ -195,7 +195,7 @@ $TCA['tt_content'] = array(
                                'type' => 'input',
                                'size' => '13',
                                'max' => '20',
-                               'eval' => 'date',
+                               'eval' => 'datetime',
                                'default' => '0',
                                'range' => array(
                                        'upper' => mktime(0,0,0,12,31,2020),