Ignore:
Timestamp:
Oct 15, 2013, 8:46:53 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Show human readable date in items in system log RSS channel.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Log/Log.php

    r586 r587  
    7979    if(array_key_exists('type', $_GET)) $Where = ' WHERE `Type` = "'.($_GET['type'] * 1).'"';
    8080      else $Where = '';
    81     $sql = 'SELECT *, UNIX_TIMESTAMP(`Date`) AS `TimeCreate`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName` FROM `Log`'.
     81    $sql = 'SELECT *, UNIX_TIMESTAMP(`Date`) AS `TimeCreate`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName`, `Date` FROM `Log`'.
    8282      $Where.' ORDER BY `Date` DESC LIMIT 100';
    8383    $DbResult = $this->System->Database->query($sql);
     
    9494        'Title' => $LogType['Name'].' ('.$Line['UserName'].', '.$Line['IP'].')',
    9595        'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log.php'),
    96         'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].', '.$Line['IP'].', '.$Line['TimeCreate'].')',
     96        'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].
     97          ', '.$Line['IP'].', '.HumanDate($Line['Date']).')',
    9798        'Time' => $Line['TimeCreate'],
    9899      );
Note: See TracChangeset for help on using the changeset viewer.