v 0.1.4.1 correction new DateTime in shortcode, conflict with namespace
This commit is contained in:
@@ -93,7 +93,8 @@ function format_user_info($query, &$current_user, $user_id) {
|
||||
$timestamp = strtotime($output);
|
||||
}
|
||||
if ($timestamp !== false) {
|
||||
$date = new DateTime('@' . $timestamp);
|
||||
//$date = new \DateTime('@' . $timestamp);
|
||||
$date = date_create('@' . $timestamp);
|
||||
$output = $date->format($output_date_format);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user