_formatDate() protected méthode

So we have to send a different date type depending on where it's used. Used when encoding a date value to send to the client.
protected _formatDate ( Horde_Date $dt, integer $type ) : string
$dt Horde_Date The Horde_Date object to format (should normally be in local tz).
$type integer The type to format as: One of TYPE_DATE or TYPE_DATE_DASHES, TYPE_DATE_LOCAL
Résultat string The formatted date
Exemple #1
0
 protected function _formatDate(Horde_Date $dt, $type)
 {
     if (empty($this->_device)) {
         $date = $dt;
     } else {
         $date = $this->_device->normalizePoomContactsDates($dt, true);
     }
     return parent::_formatDate($date, $type);
 }