From 0b059ac9914506111b6f6d4cc0082e8e00b3e42b Mon Sep 17 00:00:00 2001 From: Ruidy Date: Thu, 11 Apr 2024 14:59:27 +0200 Subject: [PATCH] fix date on pdf report --- internal/pdf/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pdf/service.go b/internal/pdf/service.go index 0cc5ace..6af7af7 100644 --- a/internal/pdf/service.go +++ b/internal/pdf/service.go @@ -107,8 +107,8 @@ func (ps PdfService) BuildReport(r *booking.Report, period string, month, year i return map[string]any{ "id": l.Id, "name": l.CustomerName, - "from": l.From.Format("02 01 2006"), - "to": l.To.Format("02 02 2006"), + "from": l.From.Format("02/01/2006"), + "to": l.To.Format("02/01/2006"), "total": strconv.FormatFloat(l.Total, 'f', 2, 64), "platform": l.Platform, "platform_fees": strconv.FormatFloat(l.PlatformFees, 'f', 2, 64),