Skip to content

Commit

Permalink
Merge pull request #42 from AndyGaskell/patch-2
Browse files Browse the repository at this point in the history
Fix for date and timezone issues diferences
  • Loading branch information
graredcr committed Oct 2, 2015
2 parents 4fda2e2 + 4b32959 commit c395478
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/extensions/system_fieldsattachment/fieldsattachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ private function getlastId()

$db = JFactory::getDBO();
$user = JFactory::getUser();
$mysqldate = date( 'Y-m-d H:i:s' );
$mysqldate = JFactory::getDate()->format('Y-m-d H:i:s');

//-----------------------
$query = 'SELECT id FROM #__content WHERE created_by='.$user->get('id').' AND title= "" ';
Expand Down Expand Up @@ -1581,7 +1581,7 @@ private function getcategorylastId()
{
$db = & JFactory::getDBO();
$user =& JFactory::getUser();
$mysqldate = date( 'Y-m-d H:i:s' );
$mysqldate = JFactory::getDate()->format('Y-m-d H:i:s');

//-----------------------
$query = 'SELECT id FROM #__categories WHERE created_user_id='.$user->get(id).' AND title= "" ';
Expand Down Expand Up @@ -2114,7 +2114,7 @@ function writeLog( $mesg)

//LOG*********
jimport('joomla.cron.log');
$create_date = date("Y-m-d H:i:s");
$create_date = JFactory::getDate()->format('Y-m-d H:i:s');
$mesg = $create_date." - " .$mesg;

JLog::addLogger(
Expand All @@ -2136,4 +2136,4 @@ function writeLog( $mesg)



}
}

0 comments on commit c395478

Please sign in to comment.