mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Update date format in console commands
This commit is contained in:
parent
be281b0d89
commit
b110702487
@ -59,7 +59,7 @@ class ChargeRenewalInvoices extends Command
|
|||||||
|
|
||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
$this->info(date('Y-m-d').' ChargeRenewalInvoices...');
|
$this->info(date('r').' ChargeRenewalInvoices...');
|
||||||
|
|
||||||
if ($database = $this->option('database')) {
|
if ($database = $this->option('database')) {
|
||||||
config(['database.default' => $database]);
|
config(['database.default' => $database]);
|
||||||
|
@ -83,7 +83,7 @@ class CreateTestData extends Command
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->info(date('Y-m-d').' Running CreateTestData...');
|
$this->info(date('r').' Running CreateTestData...');
|
||||||
$this->count = $this->argument('count');
|
$this->count = $this->argument('count');
|
||||||
|
|
||||||
if ($database = $this->option('database')) {
|
if ($database = $this->option('database')) {
|
||||||
|
@ -23,7 +23,7 @@ class PruneData extends Command
|
|||||||
|
|
||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
$this->info(date('Y-m-d').' Running PruneData...');
|
$this->info(date('r').' Running PruneData...');
|
||||||
|
|
||||||
if ($database = $this->option('database')) {
|
if ($database = $this->option('database')) {
|
||||||
config(['database.default' => $database]);
|
config(['database.default' => $database]);
|
||||||
|
@ -23,7 +23,7 @@ class RemoveOrphanedDocuments extends Command
|
|||||||
|
|
||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
$this->info(date('Y-m-d').' Running RemoveOrphanedDocuments...');
|
$this->info(date('r').' Running RemoveOrphanedDocuments...');
|
||||||
|
|
||||||
if ($database = $this->option('database')) {
|
if ($database = $this->option('database')) {
|
||||||
config(['database.default' => $database]);
|
config(['database.default' => $database]);
|
||||||
|
@ -23,7 +23,7 @@ class ResetData extends Command
|
|||||||
|
|
||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
$this->info(date('Y-m-d') . ' Running ResetData...');
|
$this->info(date('r') . ' Running ResetData...');
|
||||||
|
|
||||||
if (! Utils::isNinjaDev()) {
|
if (! Utils::isNinjaDev()) {
|
||||||
return;
|
return;
|
||||||
|
@ -65,7 +65,7 @@ class SendRecurringInvoices extends Command
|
|||||||
|
|
||||||
public function fire()
|
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')) {
|
if ($database = $this->option('database')) {
|
||||||
config(['database.default' => $database]);
|
config(['database.default' => $database]);
|
||||||
@ -76,7 +76,7 @@ class SendRecurringInvoices extends Command
|
|||||||
$this->billInvoices();
|
$this->billInvoices();
|
||||||
$this->createExpenses();
|
$this->createExpenses();
|
||||||
|
|
||||||
$this->info(date('Y-m-d H:i:s') . ' Done');
|
$this->info(date('r') . ' Done');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function resetCounters()
|
private function resetCounters()
|
||||||
|
@ -57,7 +57,7 @@ class SendReminders extends Command
|
|||||||
|
|
||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
$this->info(date('Y-m-d') . ' Running SendReminders...');
|
$this->info(date('r') . ' Running SendReminders...');
|
||||||
|
|
||||||
if ($database = $this->option('database')) {
|
if ($database = $this->option('database')) {
|
||||||
config(['database.default' => $database]);
|
config(['database.default' => $database]);
|
||||||
|
@ -50,7 +50,7 @@ class SendRenewalInvoices extends Command
|
|||||||
|
|
||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
$this->info(date('Y-m-d').' Running SendRenewalInvoices...');
|
$this->info(date('r').' Running SendRenewalInvoices...');
|
||||||
|
|
||||||
if ($database = $this->option('database')) {
|
if ($database = $this->option('database')) {
|
||||||
config(['database.default' => $database]);
|
config(['database.default' => $database]);
|
||||||
|
@ -39,6 +39,6 @@ class TestOFX extends Command
|
|||||||
|
|
||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
$this->info(date('Y-m-d').' Running TestOFX...');
|
$this->info(date('r').' Running TestOFX...');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,10 +27,10 @@ class UpdateKey extends Command
|
|||||||
|
|
||||||
public function fire()
|
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')) {
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,9 +73,9 @@ class UpdateKey extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($envWriteable) {
|
if ($envWriteable) {
|
||||||
$this->info(date('Y-m-d h:i:s') . ' Successfully update the key');
|
$this->info(date('r') . ' Successfully update the key');
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user