v 0.1.4.1 correction new DateTime in shortcode, conflict with namespace

This commit is contained in:
asus
2024-03-19 07:11:04 +01:00
parent c1b687064f
commit ba1d3e3707
3 changed files with 9 additions and 8 deletions

View File

@@ -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);
}
}