mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Small rewording
This commit is contained in:
parent
f6f7783b94
commit
a0a0e28447
@ -99,15 +99,15 @@ class AddTimezonesToDates extends Command
|
|||||||
try {
|
try {
|
||||||
$items = $model::whereNull($timezoneField)->get();
|
$items = $model::whereNull($timezoneField)->get();
|
||||||
} catch (QueryException $e) {
|
} catch (QueryException $e) {
|
||||||
$this->friendlyError(sprintf('Cannot add timezone to field "%s" of model "%s". Field does not exist.', $field, $shortModel));
|
$this->friendlyError(sprintf('Cannot add timezone information to field "%s" of model "%s". Field does not exist.', $field, $shortModel));
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
}
|
}
|
||||||
if (0 === $items->count()) {
|
if (0 === $items->count()) {
|
||||||
$this->friendlyPositive(sprintf('Timezone is present in field "%s" of model "%s".', $field, $shortModel));
|
$this->friendlyPositive(sprintf('Timezone information is present in field "%s" of model "%s".', $field, $shortModel));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->friendlyInfo(sprintf('Adding timezone to field "%s" of model "%s".', $field, $shortModel));
|
$this->friendlyInfo(sprintf('Adding timezone information to field "%s" of model "%s".', $field, $shortModel));
|
||||||
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$item->{$timezoneField} = config('app.timezone');
|
$item->{$timezoneField} = config('app.timezone');
|
||||||
|
Loading…
Reference in New Issue
Block a user