Merge pull request #1758 from chiujl/patch-1

DatetimeField returns wrong year
This commit is contained in:
Ingo Schommer 2013-04-14 13:31:09 -07:00
commit fadf77e63d

View File

@ -15,7 +15,7 @@
* Example: * Example:
* <code> * <code>
* $field = new DatetimeField('Name', 'Label'); * $field = new DatetimeField('Name', 'Label');
* $field->setConfig('datavalueformat', 'YYYY-MM-dd HH:mm'); // global setting * $field->setConfig('datavalueformat', 'yyyy-MM-dd HH:mm'); // global setting
* $field->getDateField()->setConfig('showcalendar', 1); // field-specific setting * $field->getDateField()->setConfig('showcalendar', 1); // field-specific setting
* </code> * </code>
* *
@ -46,7 +46,7 @@ class DatetimeField extends FormField {
* @var array * @var array
*/ */
private static $default_config = array( private static $default_config = array(
'datavalueformat' => 'YYYY-MM-dd HH:mm:ss', 'datavalueformat' => 'yyyy-MM-dd HH:mm:ss',
'usertimezone' => null, 'usertimezone' => null,
'datetimeorder' => '%s %s', 'datetimeorder' => '%s %s',
); );