Skip to content

Commit

Permalink
crontab command show
Browse files Browse the repository at this point in the history
  • Loading branch information
Player626 committed Dec 22, 2020
1 parent e2a9ba7 commit 56137c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/DefaultCommand/Crontab.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ protected function show()
$data = $package->getArgs();
foreach ($data as $k => $v) {
$v['taskNextRunTime'] = date('Y-m-d H:i:s', $v['taskNextRunTime']);
$v['currentRunTime'] = date('Y-m-d H:i:s', $v['currentRunTime']);
$data[$k] = array_merge(['taskName' => $k], $v);
}
return new ArrayToTextTable($data);
Expand Down

0 comments on commit 56137c3

Please sign in to comment.