Fix date parsing when sending params in command

This commit is contained in:
Kenneth Bruen 2023-12-26 06:39:15 +01:00
parent af5a3a51de
commit e4f12c766e
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

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