1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Chatbox working again with ajax

This commit is contained in:
Cameron
2013-04-26 21:49:09 -07:00
parent c62313466b
commit 94a4ba34e6
4 changed files with 206 additions and 59 deletions

View File

@@ -29,7 +29,7 @@ class convert
* System time offset is considered.
*
* @param integer $datestamp unix stamp
* @param string $mask [optional] long|short|forum or any strftime() valid string
* @param string $mask [optional] long|short|forum|relative or any strftime() valid string
*
* @return string parsed date
*/
@@ -76,6 +76,10 @@ class convert
// $datestamp += TIMEOFFSET;
break;
case 'relative':
return $this->computeLapse($datestamp, time(), false, false, 'short') ;
break;
default:
if(strpos($mask, '%') === FALSE)
{
@@ -84,7 +88,6 @@ class convert
break;
}
//
return strftime($mask, $datestamp);
}