mark $session->datetime->time as deprecated and remove its use from core code
This commit is contained in:
parent
5ecc986ec6
commit
60a4a9b140
56 changed files with 94 additions and 92 deletions
|
|
@ -137,7 +137,7 @@ sub create {
|
|||
my $properties = shift;
|
||||
my $tagId = $session->db->setRow("assetVersionTag","tagId",{
|
||||
tagId=>"new",
|
||||
creationDate=>$session->datetime->time(),
|
||||
creationDate=>time(),
|
||||
createdBy=>$session->user->userId
|
||||
});
|
||||
my $tag = $class->new($session, $tagId);
|
||||
|
|
@ -178,7 +178,7 @@ sub commit {
|
|||
if ($finished) {
|
||||
$self->{_data}{isCommitted} = 1;
|
||||
$self->{_data}{committedBy} = $self->session->user->userId unless ($self->{_data}{committedBy});
|
||||
$self->{_data}{commitDate} = $self->session->datetime->time();
|
||||
$self->{_data}{commitDate} = time();
|
||||
$self->session->db->setRow("assetVersionTag", "tagId", $self->{_data});
|
||||
$self->clearWorking;
|
||||
return 1;
|
||||
|
|
@ -674,7 +674,7 @@ sub set {
|
|||
my $self = shift;
|
||||
my $properties = shift;
|
||||
|
||||
my $now = $self->session->datetime->time();
|
||||
my $now = time();
|
||||
my $startTime = WebGUI::DateTime->new($self->session,$now)->toDatabase;
|
||||
my $endTime = WebGUI::DateTime->new($self->session,'2036-01-01 00:00:00')->toDatabase;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue