Browse Source

Fix date parsing when sending params in command

master
Kenneth Bruen 9 months ago
parent
commit
e4f12c766e
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 2
      main.go

2
main.go

@ -343,7 +343,7 @@ func handleFindTrainStages(ctx context.Context, b *tgBot.Bot, update *models.Upd
groupIndex := -1 groupIndex := -1
if len(commandParams) > 1 { if len(commandParams) > 1 {
date, _ = time.Parse(time.RFC3339, commandParams[1]) date, _ = utils.ParseDate(commandParams[1])
} }
if len(commandParams) > 2 { if len(commandParams) > 2 {
groupIndex, _ = strconv.Atoi(commandParams[2]) groupIndex, _ = strconv.Atoi(commandParams[2])

Loading…
Cancel
Save