Browse Source

wip timezone handling

3.x
Andrew Wallo 4 months ago
parent
commit
04a1c1f1af

+ 1
- 0
app/Concerns/HasTransactionAction.php View File

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 View File

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',

Loading…
Cancel
Save