Little fix to the date to timestamp conversion

This commit is contained in:
2025-07-21 23:29:29 +01:00
parent c66cb76d59
commit 54732c9b38
+1 -1
View File
@@ -92,7 +92,7 @@ func expenseFromForm(c *gin.Context) (*expenses.Expense, error) {
newDescription := c.PostForm("expense-desc")
newDate := c.PostForm("expense-date")
formattedDate, err := time.Parse("02-Jan-2006", newDate)
formattedDate, err := time.ParseInLocation("02-Jan-2006", newDate, time.UTC)
if err != nil {
return nil, err
}