mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Use now() helper in Forking date display
This commit is contained in:
@@ -203,7 +203,7 @@ class Forking extends \fork_daemon
|
||||
if (config('nntmux.echocli')) {
|
||||
$this->colorCli->header(
|
||||
'Multi-processing for '.$this->workType.' finished in '.(now()->timestamp - $startTime).
|
||||
' seconds at '.date(DATE_RFC2822).'.'.PHP_EOL
|
||||
' seconds at '.now()->toRfc2822String().'.'.PHP_EOL
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -294,7 +294,7 @@ class Forking extends \fork_daemon
|
||||
if ($this->_workCount > 0) {
|
||||
if (config('nntmux.echocli') === true) {
|
||||
$this->colorCli->header(
|
||||
'Multi-processing started at '.date(DATE_RFC2822).' for '.$this->workType.' with '.$this->_workCount.
|
||||
'Multi-processing started at '.now()->toRfc2822String().' for '.$this->workType.' with '.$this->_workCount.
|
||||
' job(s) to do using a max of '.$this->maxProcesses.' child process(es).'
|
||||
);
|
||||
}
|
||||
@@ -525,7 +525,8 @@ class Forking extends \fork_daemon
|
||||
SELECT g.name AS groupname, g.last_record AS our_last,
|
||||
a.last_record AS their_last
|
||||
FROM usenet_groups g
|
||||
INNER JOIN short_groups a ON g.active = 1 AND g.name = a.name
|
||||
INNER JOIN short_groups a ON g.ac
|
||||
tive = 1 AND g.name = a.name
|
||||
ORDER BY a.last_record DESC'
|
||||
);
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ class ForkingImportNZB extends Forking
|
||||
|
||||
if (config('nntmux.echocli')) {
|
||||
$this->colorCli->header(
|
||||
'Multi-processing started at '.date(DATE_RFC2822).' with '.$this->_workCount.
|
||||
'Multi-processing started at '.now()->toRfc2822String().' with '.$this->_workCount.
|
||||
' job(s) to do using a max of '.$maxProcesses.' child process(es).'
|
||||
);
|
||||
}
|
||||
@@ -86,7 +86,7 @@ class ForkingImportNZB extends Forking
|
||||
if (config('nntmux.echocli')) {
|
||||
$this->colorCli->header(
|
||||
'Multi-processing for import finished in '.(now()->timestamp - $startTime).
|
||||
' seconds at '.date(DATE_RFC2822).'.'.PHP_EOL
|
||||
' seconds at '.now()->toRfc2822String().'.'.PHP_EOL
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user