Andrew Wallo 2 月之前
父節點
當前提交
5314de019a

+ 0
- 3
app/Filament/Company/Clusters/Settings/Resources/AdjustmentResource.php 查看文件

@@ -10,7 +10,6 @@ use App\Enums\Accounting\AdjustmentType;
10 10
 use App\Filament\Company\Clusters\Settings;
11 11
 use App\Filament\Company\Clusters\Settings\Resources\AdjustmentResource\Pages;
12 12
 use App\Models\Accounting\Adjustment;
13
-use App\Services\CompanySettingsService;
14 13
 use Filament\Forms;
15 14
 use Filament\Forms\Form;
16 15
 use Filament\Notifications\Notification;
@@ -193,7 +192,6 @@ class AdjustmentResource extends Resource
193 192
                         ->form([
194 193
                             Forms\Components\DateTimePicker::make('paused_until')
195 194
                                 ->label('Auto-resume date')
196
-                                ->timezone(CompanySettingsService::getDefaultTimezone())
197 195
                                 ->helperText('When should this adjustment automatically resume? Leave empty to keep paused indefinitely.')
198 196
                                 ->after('now'),
199 197
                             Forms\Components\Textarea::make('status_reason')
@@ -253,7 +251,6 @@ class AdjustmentResource extends Resource
253 251
                         ->form([
254 252
                             Forms\Components\DateTimePicker::make('paused_until')
255 253
                                 ->label('Auto-resume date')
256
-                                ->timezone(CompanySettingsService::getDefaultTimezone())
257 254
                                 ->helperText('When should these adjustments automatically resume? Leave empty to keep paused indefinitely.')
258 255
                                 ->after('now'),
259 256
                             Forms\Components\Textarea::make('status_reason')

+ 1
- 4
app/Filament/Forms/Components/CreateAdjustmentSelect.php 查看文件

@@ -8,7 +8,6 @@ use App\Enums\Accounting\AdjustmentScope;
8 8
 use App\Enums\Accounting\AdjustmentStatus;
9 9
 use App\Enums\Accounting\AdjustmentType;
10 10
 use App\Models\Accounting\Adjustment;
11
-use App\Services\CompanySettingsService;
12 11
 use Filament\Forms\Components\Actions\Action;
13 12
 use Filament\Forms\Components\Checkbox;
14 13
 use Filament\Forms\Components\DateTimePicker;
@@ -196,10 +195,8 @@ class CreateAdjustmentSelect extends Select
196 195
 
197 196
             Group::make()
198 197
                 ->schema([
199
-                    DateTimePicker::make('start_date')
200
-                        ->timezone(CompanySettingsService::getDefaultTimezone()),
198
+                    DateTimePicker::make('start_date'),
201 199
                     DateTimePicker::make('end_date')
202
-                        ->timezone(CompanySettingsService::getDefaultTimezone())
203 200
                         ->after('start_date'),
204 201
                 ])
205 202
                 ->visible(function (Get $get) {

+ 0
- 2
app/Livewire/Company/Service/ConnectedAccount/ListInstitutions.php 查看文件

@@ -8,7 +8,6 @@ use App\Models\Banking\BankAccount;
8 8
 use App\Models\Banking\ConnectedBankAccount;
9 9
 use App\Models\Banking\Institution;
10 10
 use App\Models\User;
11
-use App\Services\CompanySettingsService;
12 11
 use App\Services\PlaidService;
13 12
 use Filament\Actions\Action;
14 13
 use Filament\Actions\Concerns\InteractsWithActions;
@@ -90,7 +89,6 @@ class ListInstitutions extends Component implements HasActions, HasForms
90 89
                 DatePicker::make('start_date')
91 90
                     ->label('Start date')
92 91
                     ->required()
93
-                    ->timezone(CompanySettingsService::getDefaultTimezone())
94 92
                     ->placeholder('Select a start date for importing transactions.')
95 93
                     ->minDate(company_today()->subDays(PlaidService::TRANSACTION_DAYS_REQUESTED)->toDateString())
96 94
                     ->maxDate(company_today()->toDateString()),

Loading…
取消
儲存