From 535bafa73a44e0f62e7caa0a87589e8982e7dd61 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Tue, 27 Aug 2024 21:35:35 +0300 Subject: [PATCH] fix: set 8-th mounth instead 9-th --- Endpoint/Controllers/V1/GroupController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Endpoint/Controllers/V1/GroupController.cs b/Endpoint/Controllers/V1/GroupController.cs index 6197047..fe6f079 100644 --- a/Endpoint/Controllers/V1/GroupController.cs +++ b/Endpoint/Controllers/V1/GroupController.cs @@ -26,7 +26,7 @@ public class GroupController(IMediator mediator) : BaseController // Convert a two-digit year to a four-digit one yearOfGroup += current.Year / 100 * 100; - return current.Year - yearOfGroup + (current.Month < 9 ? 0 : 1); + return current.Year - yearOfGroup + (current.Month < 8 ? 0 : 1); } ///