From 457e43f5b9c14c430c8bcb3c80f9330de2632a57 Mon Sep 17 00:00:00 2001 From: "Mr.Jebelli" Date: Sat, 28 Feb 2026 10:32:35 +0330 Subject: [PATCH] fixed report --- lib/data/repository/auth_repository.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/data/repository/auth_repository.dart b/lib/data/repository/auth_repository.dart index 85974e9..965026f 100644 --- a/lib/data/repository/auth_repository.dart +++ b/lib/data/repository/auth_repository.dart @@ -145,9 +145,9 @@ class AuthRepository { startDate = Jalali(shamsiYear, shamsiMounth, 1); Jalali endDate = Jalali( - shamsiYear, - shamsiMounth + 1 > 12 ? 12 : shamsiMounth + 1, - shamsiMounth + 1 > 12 ? 30 : 1) + shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear, + shamsiMounth == 12 ? 1 : shamsiMounth + 1, + 1) .addDays(-1); Gregorian sMiladiDate = startDate.toGregorian(); Gregorian eMiladiDate = endDate.toGregorian(); @@ -174,9 +174,9 @@ class AuthRepository { startDate = Jalali(shamsiYear, shamsiMounth, 1); Jalali endDate = Jalali( - shamsiYear, - shamsiMounth + 1 > 12 ? 12 : shamsiMounth + 1, - shamsiMounth + 1 > 12 ? 30 : 1) + shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear, + shamsiMounth == 12 ? 1 : shamsiMounth + 1, + 1) .addDays(-1); Gregorian sMiladiDate = startDate.toGregorian();