From e4f12c766ea09103685783d6da38ccf9281632fa Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Tue, 26 Dec 2023 06:39:15 +0100 Subject: [PATCH] Fix date parsing when sending params in command --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8a080ea..0f3af69 100644 --- a/main.go +++ b/main.go @@ -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])