Fixed a localtime bug.
This commit is contained in:
parent
016de5abae
commit
4e800d5178
5 changed files with 9 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ use WebGUI::SQL;
|
|||
|
||||
#-----------------------------------------
|
||||
sub process {
|
||||
my @date = WebGUI::DateTime::localtime();
|
||||
my @date = WebGUI::DateTime::localtime(WebGUI::DateTime::time());
|
||||
if ($date[1] == $session{config}{EmptyTrash_day} && $date[4] == 1) { # only occurs at 1am on the day in question.
|
||||
WebGUI::ErrorHandler::audit("emptying system trash");
|
||||
WebGUI::Operation::Trash::_recursePageTree(3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue