Skip to content

Commit

Permalink
Merge pull request #80 from steverobbins/feature/db-timestamp
Browse files Browse the repository at this point in the history
Saving DB timestamps in UTC and improving grid filtering
  • Loading branch information
daim2k5 committed Aug 15, 2015
2 parents a8f4a06 + 5b2bdd2 commit a6170ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ protected function _prepareColumns()

$this->addColumn('timestamp', array(
'header' => Mage::helper('firegento_logger')->__('Timestamp'),
'type' => 'datetime',
'align' => 'left',
'index' => 'timestamp',
));
Expand Down
1 change: 1 addition & 0 deletions src/app/code/community/FireGento/Logger/Model/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ protected function _write($event)
$dataToInsert['advanced_info'] = $this->getAdvancedInfo($event);
}

$dataToInsert['timestamp'] = Mage::getSingleton('core/date')->gmtDate();
$this->_db->insert($this->_table, $dataToInsert);

/** @var Varien_Db_Adapter_Pdo_Mysql $db */
Expand Down

0 comments on commit a6170ff

Please sign in to comment.