-
AuthorPosts
-
acho Friend
acho
- Join date:
- January 2011
- Posts:
- 55
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
April 29, 2011 at 5:42 pm #163396Hi, I would like to change Last update function with current time in teline IV. can you tell please what php code should change?
I tried this: http://www.joomlart.com/forums/topic/current-time-instead-of-last-update-in-teline-iv-j1-6/
but it shows date but I need current timethanks!
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 29, 2011 at 6:21 pm #389064Hi,
You replace this code from /templates/ja_teline_iv/blocks/topbar.php file<p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>
with
<p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo JHTML::date('now', 'h:i:s A', true).' GMT';?></em></p>
acho Friendacho
- Join date:
- January 2011
- Posts:
- 55
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
May 4, 2011 at 6:42 pm #389831the time is not updated upon page load/reload – it shows the time of first load of the page and keeps it for hours even if you refresh/reload the page 🙁
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
May 4, 2011 at 6:48 pm #389834There could be many reasons for that but most likely the cache either on your browser or the Joomla cache.
No offence, but do people really need the current time that does not refresh while the page is loaded? Would a real time clock not be the preferable option?
Maybe integrating something like the following in that position would be better – http://extensions.joomla.org/extensions/calendars-a-events/time/clocks/395?qh=YTozOntpOjA7czo1OiJjbG9jayI7aToxO3M6NjoiY2xvY2tzIjtpOjI7czo3OiJjbG9jaydzIjt9
Having said that, everyone has a clock on their computer do they not?
acho Friendacho
- Join date:
- January 2011
- Posts:
- 55
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 13
- Thanked:
- 1 times in 1 posts
May 4, 2011 at 9:13 pm #389860<em>@phill luckhurst 238568 wrote:</em><blockquote>There could be many reasons for that but most likely the cache either on your browser or the Joomla cache.
No offence, but do people really need the current time that does not refresh while the page is loaded? Would a real time clock not be the preferable option?
Maybe integrating something like the following in that position would be better – http://extensions.joomla.org/extensions/calendars-a-events/time/clocks/395?qh=YTozOntpOjA7czo1OiJjbG9jayI7aToxO3M6NjoiY2xvY2tzIjtpOjI7czo3OiJjbG9jaydzIjt9
Having said that, everyone has a clock on their computer do they not?</blockquote>
I this regards and the date is useless 😉
I know your point but why not having clock there – I saw it workong correct on other memebers sites and I like it
Can you confirm on your browser it does the same – I am using firefox 4 for mac
Thank you
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by acho 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum