fix: set 8-th mounth instead 9-th
All checks were successful
Build and Deploy Docker Container / build-and-deploy (push) Successful in 1m41s
.NET Test Pipeline / build-and-test (push) Successful in 2m16s

This commit is contained in:
Polianin Nikita 2024-08-27 21:35:35 +03:00
parent fba842acc3
commit 535bafa73a

View File

@ -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);
}
/// <summary>