public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(array('model_timezone' => 'UTC', 'view_timezone' => $this->dateTimeUtil->getUserTimezone(), 'widget' => 'single_text', 'format' => $this->dateTimeUtil->getUserDatetimeFormat(), 'date_format' => $this->dateTimeUtil->getUserDateFormat(), 'input' => 'datetime')); }
public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(array('model_timezone' => 'UTC', 'view_timezone' => $this->dateTimeUtil->getUserTimezone(), 'end_date' => null, 'pickerOptions' => array('format' => $this->dateTimeUtil->getUserDatetimeFormat('datepicker'), 'weekStart' => 0, 'autoclose' => true, 'startView' => 'month', 'minView' => 'hour', 'maxView' => 'decade', 'todayBtn' => false, 'todayHighlight' => true, 'keyboardNavigation' => true, 'language' => 'en', 'forceParse' => true, 'minuteStep' => 5, 'pickerReferer ' => 'default', 'pickerPosition' => 'bottom-right', 'viewSelect' => 'hour', 'showMeridian' => false))); $resolver->setRequired('start_date'); }