This commit is contained in:
2024-12-30 19:50:04 +03:00
parent 7997e561f7
commit be8a5212d8
14 changed files with 428 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ class DateTimeLocal:
def find_last_day_of_month(self, date_value):
today = self.get(date_value).date()
_, last_day = calendar.monthrange(today.year, today.month)
return self.get(today.year, today.month, last_day)
return self.get(today.year, today.month, last_day, 23, 59, 59).to(self.timezone)
def find_first_day_of_month(self, date_value):
today = self.get(date_value).date()