/home/altere25/usaigc.com/wp-content/plugins/wpdatatables/source
Edit: /home/altere25/usaigc.com/wp-content/plugins/wpdatatables/source/class.date.wpdatacolumn.php (1768B)
_dataType = 'date';
}
/**
* @param $content
* @return false|mixed|string
*/
public function prepareCellOutput($content)
{
$content = apply_filters('wpdatatables_filter_date_cell_before_formatting', $content, $this->getParentTable()->getWpId());
if (!is_array($content)) {
if (!empty($content) && ($content != '0000-00-00')) {
$timestamp = is_numeric($content) ? $content : strtotime(str_replace('/', '-', $content));
$formattedValue = date(get_option('wdtDateFormat'), $timestamp);
} else {
$formattedValue = '';
}
} else {
if (!is_null($content['value'])) {
$content['value'] = str_replace('/', '-', $content['value']);
$formattedValue = date(get_option('wdtDateFormat'), strtotime($content['value']));
} else {
$formattedValue = '';
}
}
return apply_filters('wpdatatables_filter_date_cell', $formattedValue, $this->getParentTable()->getWpId());
}
/**
* @return string
*/
public function getGoogleChartColumnType()
{
return 'date';
}
}