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
|
|
@ -950,7 +950,7 @@ sub setToEpoch {
|
|||
}
|
||||
unless ($dt) {
|
||||
$self->session->errorHandler->warn("Could not format date $set for epoch. Returning current time");
|
||||
return $self->time();
|
||||
return $time();
|
||||
}
|
||||
return $dt->epoch;
|
||||
}
|
||||
|
|
@ -959,7 +959,8 @@ sub setToEpoch {
|
|||
|
||||
=head2 time ( )
|
||||
|
||||
Returns an epoch date for now.
|
||||
DEPRECATED - This method is deprecated, and should not be used in new code. Use
|
||||
the perl built in function time().
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue