From 28073fcbff911b07757b6c77ed1a2e9c55f7c959 Mon Sep 17 00:00:00 2001 From: Anthony Kinsey Date: Mon, 13 Jan 2025 14:12:29 -1000 Subject: [PATCH] fix(quote-date): add month, year and day to quote timestamp --- parsing_extra.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/parsing_extra.php b/parsing_extra.php index 2491ab44..6e30154e 100644 --- a/parsing_extra.php +++ b/parsing_extra.php @@ -62,7 +62,8 @@ function setReasonableValues() // Need these from theymos $user_info['smiley_set'] = 'default'; $user_info['time_offset'] = 0; - $user_info['time_format'] = '%I:%M:%S %p'; + $user_info['time_format'] = '%B %d, %Y, %I:%M:%S %p'; + // $user_info['time_format'] = '%I:%M:%S %p'; } //the cache functions are highly implementation-dependant, so here they are just no-ops @@ -153,9 +154,11 @@ function timeformat($logTime, $show_today = true) if (setlocale(LC_TIME, $txt['lang_locale'])) { - foreach (array('%a', '%A', '%b', '%B') as $token) - if (strpos($str, $token) !== false) - $str = str_replace($token, $func['ucwords'](strftime_updated($token, (int)$time)), $str); + foreach (array('%a', '%A') as $token) { + if (strpos($str, $token) !== false) + $str = str_replace($token, $func['ucwords'](strftime_updated($token, (int)$time)), $str); + } + } else {