-
AuthorPosts
-
November 25, 2014 at 8:39 am #203038
hi’
the “Last Update” time displayed at the top of the site is stucked at 12:00:00 AM for the last two days, although the update in my site is continuous all the day , cause it’s a NEWS site.
so i cleared all kinds of cash ( browsers, T3, back end administration ) but the time still stucked at 12 AM as in the attached image !!any idea please?
thanks
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
November 25, 2014 at 9:19 am #556456Hi there,
Please provide your site URL for checkingThank you,
Viet VuNovember 25, 2014 at 11:51 am #556475shafaaq.com/sh2
thanks
November 26, 2014 at 10:59 am #556635hi Viet Vu,
i had to remove the hole phrase to avoid the stucked time bad look !
can you deal with the problem without being displayed ?thanks for help
Ali
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
November 27, 2014 at 4:27 am #556752Hi there
I’m not sure what’s exactly JA Teline IV and T3 version you are using. But check with our latest
public static function getLastUpdate($fieldname = null)
{
if (! $fieldname) $fieldname = 'created';
$db = JFactory::getDBO();
$query = "SELECT `$fieldname` FROM #__content a ORDER BY `$fieldname` DESC LIMIT 1";
$db->setQuery($query);
$data = $db->loadObject();
if ($data != null && $data->$fieldname) {
$date = JFactory::getDate($data->$fieldname);
//get timezone configured in Global setting
$app = JFactory::getApplication();
// Get timezone offset
$tz = $app->getCfg('offset');
// Set timezone offset for date
$date->setTimezone(new DateTimeZone($tz));
//return by the format defined in language
return $date->format(JText::_('T3_DATE_FORMAT_LASTUPDATE'), true);
}
return;
}
Look like it’s right code. But please check your timezone config ?
Thank you,
Viet VuNovember 29, 2014 at 6:18 am #556982Hi,
JA Teline IV vesion is: 1.2.4
T3 version is: 1.1.5
Time Zone : UTC + 3:00 Baghdad, Moscow, Riyadh
thanks
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
November 29, 2014 at 6:19 am #556983Hi there,
I need access into your site for code inspecting . Please provide both of backend & FTP access.Thank you,
Viet VuAuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 2 voices, and was last updated by jooservices 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Last Update time is stucked at 12AM !!
Viewing 7 posts - 1 through 7 (of 7 total)