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 := ""
|
endDate := ""
|
||||||
for _, l := range schedule {
|
for _, l := range schedule {
|
||||||
if endDate != l.TimeStart.Format("01.02") {
|
if endDate != l.TimeStart.Format("02.01") {
|
||||||
if endDate != "" {
|
if endDate != "" {
|
||||||
s += "\n"
|
s += "\n"
|
||||||
}
|
}
|
||||||
endDate = l.TimeStart.Format("01.02")
|
endDate = l.TimeStart.Format("02.01")
|
||||||
s += endDate + "\n"
|
s += endDate + "\n"
|
||||||
}
|
}
|
||||||
if strings.Contains(l.User, "Ярных В.В.") {
|
if strings.Contains(l.User, "Ярных В.В.") {
|
||||||
|
|
Loading…
Reference in New Issue