mirror of
https://github.com/openvk/chandler.git
synced 2025-03-30 13:08:12 +03:00
Fix 2.0
This commit is contained in:
parent
1b2963ed62
commit
8985dec499
2 changed files with 3 additions and 6 deletions
|
@ -8,7 +8,6 @@ use Chandler\Security\User;
|
|||
use Nette\Database\Table\Selection;
|
||||
use Nette\Database\Table\ActiveRow;
|
||||
use Nette\InvalidStateException as ISE;
|
||||
use openvk\Web\Models\Repositories\CurrentUser;
|
||||
use Chandler\Database\Logs;
|
||||
|
||||
|
||||
|
|
|
@ -2,10 +2,8 @@
|
|||
namespace Chandler\Database;
|
||||
use Chandler\Database\DatabaseConnection;
|
||||
use Chandler\Security\User;
|
||||
use openvk\Web\Models\RowModel;
|
||||
use openvk\Web\Util\DateTime;
|
||||
|
||||
class Log extends RowModel
|
||||
class Log extends DBEntity
|
||||
{
|
||||
protected $tableName = "ChandlerLogs";
|
||||
|
||||
|
@ -104,9 +102,9 @@ class Log extends RowModel
|
|||
return (array) json_decode($this->getRecord()->xdiff_new, true, JSON_UNESCAPED_UNICODE) ?? null;
|
||||
}
|
||||
|
||||
function getTime(): DateTime
|
||||
function getTime(): int
|
||||
{
|
||||
return new DateTime($this->getRecord()->ts);
|
||||
return $this->getRecord()->ts;
|
||||
}
|
||||
|
||||
function diff($old, $new): array
|
||||
|
|
Loading…
Reference in a new issue