Skip to content

Commit

Permalink
Merge pull request #45 from slickage/quote-date-fix
Browse files Browse the repository at this point in the history
fix(quote-date): add month, year and day to quote timestamp
  • Loading branch information
crod951 authored Jan 14, 2025
2 parents fae4fd8 + 28073fc commit d9eaa2e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions parsing_extra.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit d9eaa2e

Please sign in to comment.