有没有办法在 silverstripe CMS 中的 TimeField 中隐藏秒数?
static $db = array (
'StartTime' => 'Time',
'EndTime' => 'Time',
);
public function getCMSFields() {
$f = new FieldList(
new TimeField('StartTime', _t('CalendarDateTime.STARTTIME','Start time')),
new TimeField('EndTime', _t('CalendarDateTime.ENDTIME','End time')),
return $f;
}