I was
thinking of this discussion, but in that case they were only looking to change the
"It is currently..." display at the top of the index page. In your case, you're wanting to make a change to "all time displays."
A relatively small quick & dirty change you could make is to inject these lines into the existing user->format_date() function:
Code: Select all
// Remove common combinations like "g:i a" and "H:i" so that we remove the separator characters, too.
// But ensure we strip out any non-standard usages trying to sneak past us as well.
$remove_formats = array( ", g:i a", ", H:i", "g:i a, ", "H:i, ", "g:i a", "H:i", "a", "A", "B", "g", "G", "h", "H", "i", "c", "r", "U" );
$format = str_replace( $remove_formats, "", $this->date_format );
This goes right before the existing
return $time->format($format, $forcedate)
line in the user->format_date() function in /phpbb/user.php.
A pre-edited version of the /phpbb/user.php file for phpBB 3.3.0 which includes this change is attached. Rename and/or replace your existing /phpbb/user.php with the attached one. You could purge the phpBB cache from the ACP General page just to be sure; but many usages will already change even without purging the cache. If you want back to shipping phpBB 3.3.0 behavior, just put the original /phpbb/user.php from the phpBB 3.3.0 download (or the renamed one you saved) and purge your phpBB cache again.
This is a "bad way to solve it", because now when phpBB 3.3.1 or any future version comes out, you have to re-implement this change along with whatever changes phpBB might have made to the user.php file. It's also not attempting to discriminate at all, and affects "every attempt to display the date and time", including cases you probably didn't want to change such as the ACP Maintenance log time stamps. But it is at least something within your control and "can do now", in absence of an extension to achieve this particular behavior.
If after seeing this you think you'd still rather take the template approach to remove the date display entirely, just let us know and we can point out where to make those edits instead.
You do not have the required permissions to view the files attached to this post.