fix date format
This commit is contained in:
parent
c09635a5e8
commit
7b51047e34
|
@ -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, "Ярных В.В.") {
|
||||
|
|
Loading…
Reference in New Issue