use timestamp instead of timestamptz

This commit is contained in:
Fran Jurmanović
2021-06-27 10:29:22 +02:00
parent 2dded0a932
commit 5c6aad39cd
3 changed files with 6 additions and 6 deletions

View File

@@ -24,9 +24,9 @@ func (as *SubscriptionService) New(body *models.NewSubscriptionBody) *models.Sub
tm.SubscriptionTypeID = body.SubscriptionTypeID
tm.CustomRange = int(customRange)
tm.Description = body.Description
tm.StartDate = body.StartDate
tm.StartDate = body.StartDate.Local()
tm.HasEnd = body.HasEnd
tm.EndDate = body.EndDate
tm.EndDate = body.EndDate.Local()
tm.Amount = float32(math.Round(amount*100) / 100)
if body.StartDate.IsZero() {