From 2dded0a932aa16b94c38e07ac7ffe53d952f0909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Sun, 27 Jun 2021 10:25:27 +0200 Subject: [PATCH] save with local timezone --- pkg/services/transactions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/transactions.go b/pkg/services/transactions.go index 43d9784..889a9a2 100644 --- a/pkg/services/transactions.go +++ b/pkg/services/transactions.go @@ -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() {