1
1
Fork 0
mirror of https://github.com/openvk/chandler.git synced 2025-03-30 13:08:12 +03:00
This commit is contained in:
n1rwana 2023-08-10 00:04:08 +03:00
parent 1b2963ed62
commit 8985dec499
No known key found for this signature in database
GPG key ID: 184A60085ABF17D8
2 changed files with 3 additions and 6 deletions

View file

@ -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;

View file

@ -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