-
Bug
-
Resolution: Fixed
-
3.0.x
-
None
-
PHP Environment:
Database:
Optimized format_date() a bit. It went from 17% to 5% of total processing time of viewtopic.php Code hasn't been tested much so far.
Not using the 'short month' code, have commented that out, integrating it with the code is left as an exercise for the reader. I also doubt the long and short version of 'May' are equal in all languages?
This part:
// BartVB Show some date < 1 hour ago as '14 min ago'
|
if ($delta < 3600 && $delta > 0 && $datecache[$format]['shortformat'] !== false)
|
{
|
return floor($delta/60) . " min " . $datecache[$format]['lang_dates']['AGO'];
|
}
|
is new code, requires an extra date string and can be removed ofcourse. My users like it though and it allows you to take a shortcut in the code