mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
save with local timezone
This commit is contained in:
@@ -22,7 +22,7 @@ func (as *TransactionService) New(body *models.NewTransactionBody) *models.Trans
|
||||
tm.WalletID = body.WalletID
|
||||
tm.TransactionTypeID = body.TransactionTypeID
|
||||
tm.Description = body.Description
|
||||
tm.TransactionDate = body.TransactionDate
|
||||
tm.TransactionDate = body.TransactionDate.Local()
|
||||
tm.Amount = float32(math.Round(amount*100) / 100)
|
||||
|
||||
if body.TransactionDate.IsZero() {
|
||||
|
||||
Reference in New Issue
Block a user