1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fix for Private-message date

This commit is contained in:
Cameron
2013-07-08 10:40:08 -07:00
parent 04c187ee2b
commit 7ff76dfcb7
2 changed files with 6 additions and 5 deletions

View File

@@ -291,14 +291,15 @@ class pm_shortcodes extends e_shortcode
public function sc_pm_date($parm = '')
{
require_once(e_HANDLER.'date_handler.php');
if('lapse' != $parm)
$tp = e107::getParser();
if($parm)
{
return convert::convert_date($this->var['pm_sent'], $parm);
return $tp->toDate($this->var['pm_sent'], $parm);
}
else
{
return convert::computeLapse($this->var['pm_sent']);
return $tp->toDate($this->var['pm_sent'], 'relative');
}
}