fix(utils): Fix off by one error in month start.

This commit is contained in:
2023-10-01 13:31:00 +03:00
parent ce4637f05a
commit 89d236f0cb

View File

@@ -765,7 +765,7 @@ class Timezoned:
Return the start of the current month in the object's timezone
"""
today = self.today
return today - datetime.timedelta(days=today.day)
return today - datetime.timedelta(days=(today.day - 1))
def replace_multiple(format_string, mapping):