Если бы я знала где этот шаблон

Вот модуль поставила там тоже самое, я там ничего не вижу от куда он берёт дату
вот код модуля может кто понимает и найдёт чего полезного
( defined('_JEXEC') || defined( '_VALID_MOS' ) ) or die( 'Direct Access to this location is not allowed.' );
global $mainframe;
require_once( $mainframe->getPath( 'class', 'com_acctexp' ) );
$class_sfx = $params->get( 'moduleclass_sfx', "");
$pretext = $params->get( 'pretext' );
$posttext = $params->get( 'posttext' );
$showExpiration = $params->def( 'show_expiration', 0 );
$displaypipeline = $params->get( 'displaypipeline', 0 );
$extended = $params->get( 'extended', 0 );
$user = &JFactory::getUser();
if ( $user->id ) {
echo '<div class="aec_module_inner' . $class_sfx . '">';
if ( !empty( $pretext ) ) {
echo $pretext;
}
if ( $showExpiration ) {
$langPath = JPATH_SITE . '/modules/' . ( aecJoomla15check()? 'mod_acctexp/' : '' ). 'mod_acctexp_language/';
if ( file_exists( $langPath . $GLOBALS['mosConfig_lang'] . '.php' )) {
include_once( $langPath . $GLOBALS['mosConfig_lang'] . '.php' );
} else {
include_once( $langPath. 'english.php' );
}
if ( !$extended ) {
echo AECModuleHelper::getExpirationSimple( $user );
} else {
$metaUser = new metaUser( $user->id );
$subscriptions = $metaUser->getAllCurrentSubscriptionsInfo();
foreach ( $subscriptions as $subscription ) {
echo '<div class="aec_module_subscription aec_module_subscriptionid_' . $subscription->plan . '">';
echo "<h4>" . $subscription->name . "</h4>";
echo AECModuleHelper::textExpiration( $user, $subscription->expiration, $subscription->lifetime, $subscription->recurring );
echo '</div>';
}
}
}
if ( $displaypipeline ) {
$dph = new displayPipelineHandler;
echo $dph->getUserPipelineEvents( $user->id );
}
if ( !empty( $posttext ) ) {
echo $posttext;
}
echo '</div>';
}
class AECModuleHelper
{
function getExpirationSimple( $user )
{
$database = &JFactory::getDBO();
$expiration = null;
$query = 'SELECT `id`, `expiration`, `lifetime`, `recurring`'
. ' FROM #__acctexp_subscr'
. ' WHERE `userid` = \'' . $user->id . '\''
. ' AND `primary` = \'1\''
. ' AND `status` != \'Excluded\'';
$database->setQuery($query);
$entry = $database->loadObject();
if ( !empty( $entry->lifetime ) ) {
return AECModuleHelper::textExpiration( $user, $entry->expiration, $entry->lifetime, $entry->recurring );
}
if ( empty( $entry->expiration ) ) {
$query = 'SELECT `id`, `expiration`, `recurring`'
. ' FROM #__acctexp_subscr'
. ' WHERE `userid` = \'' . $user->id . '\''
. ' AND `status` != \'Excluded\'';
$database->setQuery($query);
$entry = $database->loadObject();
}
if ( empty( $entry->id ) ) {
return null;
} else {
return AECModuleHelper::textExpiration( $user, $entry->expiration, $entry->lifetime, $entry->recurring );
}
}
function textExpiration( $user, $expiration, $lifetime=null, $recurring=false )
{
if ( empty( $expiration ) || $lifetime ) {
return AECModuleHelper::textUnlimited();
} else {
return AECModuleHelper::textExpirationDate( $expiration, $recurring );
}
}
function textUnlimited()
{
return "<p>" . _ACCOUNT_UNLIMIT . "</p>";
}
function textExpirationDate( $expiration, $recurring )
{
global $mainframe, $aecConfig;
$ou = $mainframe->getCfg( 'offset_user' );
// compatibility with Mambo
if ( !empty( $ou ) ) {
$timeOffset = $ou;
} else {
$timeOffset = $mainframe->getCfg( 'offset' );
}
$retVal = strftime( $aecConfig->cfg['display_date_frontend'], ( strtotime( $expiration ) + $timeOffset*3600 ) );
if ( $recurring ) {
return "<p>" . _ACCOUNT_RENEWAL . ": " . $retVal . "</p>";
} else {
return "<p>" . _ACCOUNT_EXPIRES . ": " . $retVal . "</p>";
}
}
}
?>