Hi Daniel
Just to let you know that I've done with:
* Added the put env statement in the index.php file for unregistered users,
* I've changed the getLocalDate function in utils.php (I've highlighted the code in black):
function getLocalDate($strdate,$format='%Y-%m-%d %H:%M:%S') {
jimport('joomla.utilities.date');
$user =& JFactory::getUser();
// if we have an anonymous user, then use global config, instead of the user params
if($user->get('id')) {
$tz = $user->getParam('timezone');
} else {
$conf =& JFactory::getConfig();
$tz = $conf->getValue('config.offset');
}
$jdate = new JDate($strdate);
// If in the UK - check if DST and set
if ($tz == 0)
{
$date_now = date_create(gmdate(date("y-m-d") . " 01:00"));
$offset_req = $date_now ->getoffset();
if ($offset_req <> False)
{
$tz++;
}
}
$jdate->setOffset($tz);
$formatDate = $jdate->toFormat($format);
return $formatDate;
}
/*
* Function to escape string for database use
*/
function mysql_escape_string($value)
{
$database =& JFactory::getDBO();
$result = $database->getEscaped($value);
return $result;
}
}
I just didn't think it was practical to get all my members to change their timezone settings. Also we would have to keep remembering to revert it when it changes back.
* In admin.comment.php, I commented out the line "$row->date = date("Y-m-d H:i:s");" as I would rather leave the date as is as opposed to having it be wrong.
* I had a look at the super activity and I'd rather use your comments module as it is.
It seems to work so I'm happy
Thanks
Harris