Skip to content

Commit

Permalink
Fix issue #24649
Browse files Browse the repository at this point in the history
  • Loading branch information
twister65 committed Apr 21, 2019
1 parent edc19d5 commit cd667d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/com_banners/models/banner.php
Expand Up @@ -78,7 +78,7 @@ public function click()

if ($trackClicks > 0)
{
$trackDate = JFactory::getDate()->format('Y-m-d H');
$trackDate = JFactory::getDate()->format('Y-m-d H:00:00');

$query->clear()
->select($db->quoteName('count'))
Expand Down
2 changes: 1 addition & 1 deletion components/com_banners/models/banners.php
Expand Up @@ -222,7 +222,7 @@ public function getItems()
*/
public function impress()
{
$trackDate = JFactory::getDate()->format('Y-m-d H');
$trackDate = JFactory::getDate()->format('Y-m-d H:00:00');
$items = $this->getItems();
$db = $this->getDbo();
$query = $db->getQuery(true);
Expand Down

0 comments on commit cd667d8

Please sign in to comment.