From b110702487d4f305410b0f440c8ef8dabf8413c6 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 24 Oct 2017 10:59:26 +0300 Subject: [PATCH] Update date format in console commands --- app/Console/Commands/ChargeRenewalInvoices.php | 2 +- app/Console/Commands/CreateTestData.php | 2 +- app/Console/Commands/PruneData.php | 2 +- app/Console/Commands/RemoveOrphanedDocuments.php | 2 +- app/Console/Commands/ResetData.php | 2 +- app/Console/Commands/SendRecurringInvoices.php | 4 ++-- app/Console/Commands/SendReminders.php | 2 +- app/Console/Commands/SendRenewalInvoices.php | 2 +- app/Console/Commands/TestOFX.php | 2 +- app/Console/Commands/UpdateKey.php | 8 ++++---- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Console/Commands/ChargeRenewalInvoices.php b/app/Console/Commands/ChargeRenewalInvoices.php index 105a0e4675..6ccdd59b4d 100644 --- a/app/Console/Commands/ChargeRenewalInvoices.php +++ b/app/Console/Commands/ChargeRenewalInvoices.php @@ -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]); diff --git a/app/Console/Commands/CreateTestData.php b/app/Console/Commands/CreateTestData.php index f7f2407277..161441f7e7 100644 --- a/app/Console/Commands/CreateTestData.php +++ b/app/Console/Commands/CreateTestData.php @@ -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')) { diff --git a/app/Console/Commands/PruneData.php b/app/Console/Commands/PruneData.php index adc67edc7f..668bbafc0d 100644 --- a/app/Console/Commands/PruneData.php +++ b/app/Console/Commands/PruneData.php @@ -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]); diff --git a/app/Console/Commands/RemoveOrphanedDocuments.php b/app/Console/Commands/RemoveOrphanedDocuments.php index 4241e505cd..c6d9214240 100644 --- a/app/Console/Commands/RemoveOrphanedDocuments.php +++ b/app/Console/Commands/RemoveOrphanedDocuments.php @@ -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]); diff --git a/app/Console/Commands/ResetData.php b/app/Console/Commands/ResetData.php index 02ba8804c5..bd268dd795 100644 --- a/app/Console/Commands/ResetData.php +++ b/app/Console/Commands/ResetData.php @@ -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; diff --git a/app/Console/Commands/SendRecurringInvoices.php b/app/Console/Commands/SendRecurringInvoices.php index 05593022e8..c7d32473ee 100644 --- a/app/Console/Commands/SendRecurringInvoices.php +++ b/app/Console/Commands/SendRecurringInvoices.php @@ -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() diff --git a/app/Console/Commands/SendReminders.php b/app/Console/Commands/SendReminders.php index b95ff4d90d..8c80a19c3a 100644 --- a/app/Console/Commands/SendReminders.php +++ b/app/Console/Commands/SendReminders.php @@ -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]); diff --git a/app/Console/Commands/SendRenewalInvoices.php b/app/Console/Commands/SendRenewalInvoices.php index a054c2e18b..ce661153fb 100644 --- a/app/Console/Commands/SendRenewalInvoices.php +++ b/app/Console/Commands/SendRenewalInvoices.php @@ -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]); diff --git a/app/Console/Commands/TestOFX.php b/app/Console/Commands/TestOFX.php index 08246c5f7c..763566d47b 100644 --- a/app/Console/Commands/TestOFX.php +++ b/app/Console/Commands/TestOFX.php @@ -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...'); } } diff --git a/app/Console/Commands/UpdateKey.php b/app/Console/Commands/UpdateKey.php index 7fbcd7c17f..5625822488 100644 --- a/app/Console/Commands/UpdateKey.php +++ b/app/Console/Commands/UpdateKey.php @@ -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); } }