From 7b51047e34a96adeed250b7c3975cdeccdcf329b Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Wed, 11 Jan 2023 02:35:03 +0700 Subject: [PATCH] fix date format --- messages/messages.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/messages/messages.go b/messages/messages.go index 5677057..4bd5bbf 100644 --- a/messages/messages.go +++ b/messages/messages.go @@ -55,11 +55,11 @@ func LessonsMessage(schedule []parser.Lesson, prefix, emptyText string) string { } endDate := "" for _, l := range schedule { - if endDate != l.TimeStart.Format("01.02") { + if endDate != l.TimeStart.Format("02.01") { if endDate != "" { s += "\n" } - endDate = l.TimeStart.Format("01.02") + endDate = l.TimeStart.Format("02.01") s += endDate + "\n" } if strings.Contains(l.User, "Ярных В.В.") {