Browse Source

wip timezone handling

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

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

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

+ 1
- 1
tests/Feature/Accounting/TransactionTest.php View File

@@ -233,7 +233,7 @@ it('can add an income or expense transaction', function (TransactionType $transa
233 233
     livewire(ListTransactions::class)
234 234
         ->mountAction($actionName)
235 235
         ->assertActionDataSet([
236
-            'posted_at' => today(),
236
+            'posted_at' => company_today()->toDateString(),
237 237
             'type' => $transactionType,
238 238
             'bank_account_id' => $defaultBankAccount->id,
239 239
             'amount' => '0.00',

Loading…
Cancel
Save