0

JFactory::getDate() doesn’t automatically add offset

Posted by Tim on December 7, 2009 in Open Source, PHP

By default, calling JFactory::getDate() doesn’t automatically apply the timezone offset.   The default date/time is GMT. By using the following code, you can set the offset from the global joomla configuration file <?php $thisJApp = &JFactory::getApplication(); $thisJDate = JFactory::getDate(); $thisJDate ->setOffset($thisJApp ->getCfg(‘offset’)); echo $thisJDate->toFormat(“%A %d %b %Y”); ?> If you want to set the date from [...]

Tags: ,

 
0

SimplePie Joomla Proxy Issue

Posted by Tim on June 19, 2009 in Open Source, PHP

The issue I had with a particular joomla site is that I could not load external RSS feeds.   The error was “Could not connect to {server}”.   RSS Feed load failed.   This was caused in the SimplePie.php class around line 6601. Steps to resolve: I enabled the cUrl extension in php.ini (running on a IIS platform) [...]

Tags: , ,

 
0

Modifying contact component in Joomla issue

Posted by Tim on March 23, 2009 in Open Source

The problem I came across when making a modification to the layout in the Joomla contact component was it wasn’t updating on the website.   I even cleared out the cache and it still didn’t work. It wasn’t until I realized it was because of the template that I was using. Templates can override the layout [...]

Tags:

Copyright © 2008-2010 Tim's CodeLab Blog All rights reserved.
Desk Mess Mirrored v1.7 theme from BuyNowShop.com.