1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Update date format in console commands

This commit is contained in:
Hillel Coren 2017-10-24 10:59:26 +03:00
parent be281b0d89
commit b110702487
10 changed files with 14 additions and 14 deletions

View File

@ -59,7 +59,7 @@ class ChargeRenewalInvoices extends Command
public function fire()
{
$this->info(date('Y-m-d').' ChargeRenewalInvoices...');
$this->info(date('r').' ChargeRenewalInvoices...');
if ($database = $this->option('database')) {
config(['database.default' => $database]);

View File

@ -83,7 +83,7 @@ class CreateTestData extends Command
return false;
}
$this->info(date('Y-m-d').' Running CreateTestData...');
$this->info(date('r').' Running CreateTestData...');
$this->count = $this->argument('count');
if ($database = $this->option('database')) {

View File

@ -23,7 +23,7 @@ class PruneData extends Command
public function fire()
{
$this->info(date('Y-m-d').' Running PruneData...');
$this->info(date('r').' Running PruneData...');
if ($database = $this->option('database')) {
config(['database.default' => $database]);

View File

@ -23,7 +23,7 @@ class RemoveOrphanedDocuments extends Command
public function fire()
{
$this->info(date('Y-m-d').' Running RemoveOrphanedDocuments...');
$this->info(date('r').' Running RemoveOrphanedDocuments...');
if ($database = $this->option('database')) {
config(['database.default' => $database]);

View File

@ -23,7 +23,7 @@ class ResetData extends Command
public function fire()
{
$this->info(date('Y-m-d') . ' Running ResetData...');
$this->info(date('r') . ' Running ResetData...');
if (! Utils::isNinjaDev()) {
return;

View File

@ -65,7 +65,7 @@ class SendRecurringInvoices extends Command
public function fire()
{
$this->info(date('Y-m-d H:i:s') . ' Running SendRecurringInvoices...');
$this->info(date('r') . ' Running SendRecurringInvoices...');
if ($database = $this->option('database')) {
config(['database.default' => $database]);
@ -76,7 +76,7 @@ class SendRecurringInvoices extends Command
$this->billInvoices();
$this->createExpenses();
$this->info(date('Y-m-d H:i:s') . ' Done');
$this->info(date('r') . ' Done');
}
private function resetCounters()

View File

@ -57,7 +57,7 @@ class SendReminders extends Command
public function fire()
{
$this->info(date('Y-m-d') . ' Running SendReminders...');
$this->info(date('r') . ' Running SendReminders...');
if ($database = $this->option('database')) {
config(['database.default' => $database]);

View File

@ -50,7 +50,7 @@ class SendRenewalInvoices extends Command
public function fire()
{
$this->info(date('Y-m-d').' Running SendRenewalInvoices...');
$this->info(date('r').' Running SendRenewalInvoices...');
if ($database = $this->option('database')) {
config(['database.default' => $database]);

View File

@ -39,6 +39,6 @@ class TestOFX extends Command
public function fire()
{
$this->info(date('Y-m-d').' Running TestOFX...');
$this->info(date('r').' Running TestOFX...');
}
}

View File

@ -27,10 +27,10 @@ class UpdateKey extends Command
public function fire()
{
$this->info(date('Y-m-d h:i:s') . ' Running UpdateKey...');
$this->info(date('r') . ' Running UpdateKey...');
if (! env('APP_KEY') || ! env('APP_CIPHER')) {
$this->info(date('Y-m-d h:i:s') . ' Error: app key and cipher are not set');
$this->info(date('r') . ' Error: app key and cipher are not set');
exit;
}
@ -73,9 +73,9 @@ class UpdateKey extends Command
}
if ($envWriteable) {
$this->info(date('Y-m-d h:i:s') . ' Successfully update the key');
$this->info(date('r') . ' Successfully update the key');
} else {
$this->info(date('Y-m-d h:i:s') . ' Successfully update data, make sure to set the new app key: ' . $key);
$this->info(date('r') . ' Successfully update data, make sure to set the new app key: ' . $key);
}
}