fix date format

This commit is contained in:
Владимир Фёдоров 2023-01-11 02:35:03 +07:00
parent c09635a5e8
commit 7b51047e34
1 changed files with 2 additions and 2 deletions

View File

@ -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, "Ярных В.В.") {