mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1758 from chiujl/patch-1
DatetimeField returns wrong year
This commit is contained in:
commit
fadf77e63d
@ -15,7 +15,7 @@
|
||||
* Example:
|
||||
* <code>
|
||||
* $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
|
||||
* </code>
|
||||
*
|
||||
@ -46,7 +46,7 @@ class DatetimeField extends FormField {
|
||||
* @var array
|
||||
*/
|
||||
private static $default_config = array(
|
||||
'datavalueformat' => 'YYYY-MM-dd HH:mm:ss',
|
||||
'datavalueformat' => 'yyyy-MM-dd HH:mm:ss',
|
||||
'usertimezone' => null,
|
||||
'datetimeorder' => '%s %s',
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user