瀏覽代碼

wip timezone handling

3.x
Andrew Wallo 2 月之前
父節點
當前提交
04a1c1f1af
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. 1
    0
      app/Concerns/HasTransactionAction.php
  2. 1
    1
      tests/Feature/Accounting/TransactionTest.php

+ 1
- 0
app/Concerns/HasTransactionAction.php 查看文件

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 查看文件

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…
取消
儲存