updated 5:04 PM CET, Mar 5, 2014

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Mar 11, 2015 8:20 pm
Reply with quote
Report this post
How can I change the time that the webpage is updated? (see attached icon) I would like to change the Time zone.
The server Time Zone is right (set to Athens) but the update time is wrong.
User avatar
Fresh Boarder

teitbite
Sat Mar 14, 2015 11:03 am
Reply with quote
Report this post
Hi

Date is being picked up from database, so it's a database time You should consider. If You want to change format, just override in language joomla overrides this sentence TPL_GK_LANG_UPDATE_DATE_FORMAT using parameters from this function http://php.net/manual/pl/function.date.php
User avatar
Moderator

GK User
Wed Mar 25, 2015 11:45 am
Reply with quote
Report this post
When its not possible to change the database time... is there a way to define time zone offset in the language file override?
User avatar
Fresh Boarder

teitbite
Thu Mar 26, 2015 5:27 pm
Reply with quote
Report this post
Hi

It's just a guess, but try to adjust file /layout/blocks/updates.php line 38

Code: Select all
echo JText::_('TPL_GK_LANG_UPDATE_DATE') . ' ' . date(JText::_('TPL_GK_LANG_UPDATE_DATE_FORMAT'), $final_date);


with

Code: Select all
echo JText::_('TPL_GK_LANG_UPDATE_DATE') . ' ' . date(JText::_('TPL_GK_LANG_UPDATE_DATE_FORMAT'), strtotime( $final_date ) + 'OFFSET IN SECONDS');


change the text OFFSET IN SECONDS into the value of the gap between database and server time.
User avatar
Moderator


cron