mirror of
https://github.com/dancojocaru2000/CfrTrainInfoTelegramBot.git
synced 2025-02-22 17:19:39 +02:00
Fix date parsing when sending params in command
This commit is contained in:
parent
af5a3a51de
commit
e4f12c766e
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue