$this->out->elementStart('div', 'experience-item');
$this->out->element('div', 'label', _m('Company'));
$this->out->element('div', 'field', $field['company']);
+
$this->out->element('div', 'label', _m('Start'));
- $this->out->element('div', array('class' => 'field date'), $field['start']);
+ $this->out->element(
+ 'div',
+ array('class' => 'field date'),
+ date('j M Y', strtotime($field['start'])
+ )
+ );
$this->out->element('div', 'label', _m('End'));
- $this->out->element('div', array('class' => 'field date'), $field['end']);
+ $this->out->element(
+ 'div',
+ array('class' => 'field date'),
+ date('j M Y', strtotime($field['end'])
+ )
+ );
+
if ($field['current']) {
$this->out->element(
'div',
$this->out->input(
$id . '-start',
null,
- isset($field['start']) ? $field['start'] : null
+ isset($field['start']) ? date('j M Y', strtotime($field['start'])) : null
);
$this->out->element('div', 'label', _m('End'));
$this->out->input(
$id . '-end',
null,
- isset($field['end']) ? $field['end'] : null
+ isset($field['end']) ? date('j M Y', strtotime($field['end'])) : null
);
$this->out->hidden(
$id . '-current',
$this->out->element('div', 'label', _m('Description'));
$this->out->element('div', 'field', $field['description']);
$this->out->element('div', 'label', _m('Start'));
- $this->out->element('div', array('class' => 'field date'), $field['start']);
+ $this->out->element(
+ 'div',
+ array('class' => 'field date'),
+ date('j M Y', strtotime($field['start'])
+ )
+ );
$this->out->element('div', 'label', _m('End'));
- $this->out->element('div', array('class' => 'field date'), $field['end']);
+ $this->out->element(
+ 'div',
+ array('class' => 'field date'),
+ date('j M Y', strtotime($field['end'])
+ )
+ );
$this->out->elementEnd('div');
}
$this->out->input(
$id . '-start',
null,
- isset($field['start']) ? $field['start'] : null
+ isset($field['start']) ? date('j M Y', strtotime($field['start'])) : null
);
$this->out->element('div', 'label', _m('End'));
$this->out->input(
$id . '-end',
null,
- isset($field['end']) ? $field['end'] : null
+ isset($field['end']) ? date('j M Y', strtotime($field['end'])) : null
);
$this->showMultiControls();
$this->out->text($this->ext->getTextValue($name));
break;
case 'date':
- $this->out->text($this->ext->getTextValue($name));
+ $this->out->element(
+ 'div',
+ array('class' => 'field date'),
+ date('j M Y', strtotime($this->ext->getTextValue($name)))
+ );
break;
case 'person':
$this->out->text($this->ext->getTextValue($name));
$out->input($id, null, $this->ext->getTextValue($name));
break;
case 'date':
- $out->input($id, null, $this->ext->getTextValue($name));
+ $out->input(
+ $id,
+ null,
+ date('j M Y', strtotime($this->ext->getTextValue($name)))
+ );
break;
case 'person':
$out->input($id, null, $this->ext->getTextValue($name));