fix(utils): Fix off by one error in month start.
This commit is contained in:
@@ -765,7 +765,7 @@ class Timezoned:
|
|||||||
Return the start of the current month in the object's timezone
|
Return the start of the current month in the object's timezone
|
||||||
"""
|
"""
|
||||||
today = self.today
|
today = self.today
|
||||||
return today - datetime.timedelta(days=today.day)
|
return today - datetime.timedelta(days=(today.day - 1))
|
||||||
|
|
||||||
|
|
||||||
def replace_multiple(format_string, mapping):
|
def replace_multiple(format_string, mapping):
|
||||||
|
|||||||
Reference in New Issue
Block a user