Bladeren bron

wip timezone handling

3.x
Andrew Wallo 5 maanden geleden
bovenliggende
commit
04a1c1f1af
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 1
    0
      app/Concerns/HasTransactionAction.php
  2. 1
    1
      tests/Feature/Accounting/TransactionTest.php

+ 1
- 0
app/Concerns/HasTransactionAction.php Bestand weergeven

83
             ->schema([
83
             ->schema([
84
                 Forms\Components\DatePicker::make('posted_at')
84
                 Forms\Components\DatePicker::make('posted_at')
85
                     ->label('Date')
85
                     ->label('Date')
86
+                    ->native()
86
                     ->required(),
87
                     ->required(),
87
                 Forms\Components\TextInput::make('description')
88
                 Forms\Components\TextInput::make('description')
88
                     ->label('Description'),
89
                     ->label('Description'),

+ 1
- 1
tests/Feature/Accounting/TransactionTest.php Bestand weergeven

233
     livewire(ListTransactions::class)
233
     livewire(ListTransactions::class)
234
         ->mountAction($actionName)
234
         ->mountAction($actionName)
235
         ->assertActionDataSet([
235
         ->assertActionDataSet([
236
-            'posted_at' => today(),
236
+            'posted_at' => company_today()->toDateString(),
237
             'type' => $transactionType,
237
             'type' => $transactionType,
238
             'bank_account_id' => $defaultBankAccount->id,
238
             'bank_account_id' => $defaultBankAccount->id,
239
             'amount' => '0.00',
239
             'amount' => '0.00',

Laden…
Annuleren
Opslaan