Aliia
is it posible that the changed date_time.php is modified to
public static function formatSimpleDate( $timeStamp, $onlyDate = false )
{
$militaryTime = (bool) OW::getConfig()->getValue('base', 'military_time');
$language = OW::getLanguage();
if ( !$timeStamp )
{
return '_INVALID_TS_';
}
$month = $language->text('base', 'date_time_month_short_' . date('n', $timeStamp));
//$at = $language->text('base', 'date_time_at_label');
if ( $onlyDate )
{
return ( date('y', $timeStamp) === date('y', time()) ) ?
strftime("%a, %d.%m.%Y", $timeStamp) :
strftime("%a, %d.%m.%Y", $timeStamp);
}
return ( date('y', $timeStamp) === date('y', time()) ) ?
( $militaryTime ? strftime("%a, %d.%m.%Y, %H:%M", $timeStamp) : strftime("%a, %d.%m.%Y, %I:%M%p", $timeStamp) ) :
( $militaryTime ? strftime("%a, %d.%m.%y, %H:%M", $timeStamp) : strftime("%a, %d.%m.%Y, %I:%M%p", $timeStamp) );
}
/* * p, $onlyDate = null )
* Returns formated date string/literal date string for provided time stamp.
*
* Format:
* `{literal|str}`
* `{literal|str} {hours:int}:{minutes:int}[am/pm]`
* `{month:str} {day:int} '{year:int} {hours:int}:{minutes:int}[am/pm]`
*
* Samples:
* `within 1 minute`
* `within 3 minutes`
* `1 hour ago`
* `5 hours ago`
* `today` | $onlyDate = true
* `yesterday, 15:48[am/pm]`
* `yesterday` | $onlyDate = true
* `Jan 17 '09, 11:07[am]`
* `Oct 25 '09, 08:09[pm]`
* `Oct 25 '09` | $onlyDate = true
*
* @param integer $timeStamp
* @param boolean $onlyDate
* @return string
*/
the problems makes
greets
Jeroen