Use timezone from database

This commit is contained in:
Fran Jurmanović
2021-06-27 11:38:28 +02:00
parent 5c6aad39cd
commit a5f8a8818c
3 changed files with 14 additions and 10 deletions

View File

@@ -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.Local()
tm.TransactionDate = body.TransactionDate
tm.Amount = float32(math.Round(amount*100) / 100)
if body.TransactionDate.IsZero() {