1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 12:10:45 +02:00

Remove the "None" option for dateInputFormat per issue processwire/processwire-issues#37

This commit is contained in:
Ryan Cramer
2016-10-11 11:49:19 -04:00
parent 67f504834d
commit 7568093ea7

View File

@@ -291,7 +291,7 @@ class InputfieldDatetime extends Inputfield {
$f->label = $this->_('Date Input Format');
$f->description = $this->_('Select the format to be used for user input to this field. Your selection will populate the field below this, which you may customize further if needed.');
$f->icon = 'calendar';
$f->addOption('', $this->_('None'));
//$f->addOption('', $this->_('None'));
$date = strtotime('2016-04-08 5:10:02 PM');
foreach($datetime->getDateFormats() as $format) {
$dateFormatted = $datetime->formatDate($date, $format);